Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 1249858

Browse files
committed
transport: go fmt
1 parent 0401a85 commit 1249858

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

transport/policy_test.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ func TestDCAwareRoundRobinPolicy(t *testing.T) { //nolint:paralleltest // Can't
139139
}
140140

141141
/*
142-
mockTopologyTokenAwareSimpleStrategy creates cluster topology with info about 3 nodes living in the same datacenter.
142+
mockTopologyTokenAwareSimpleStrategy creates cluster topology with info about 3 nodes living in the same datacenter.
143143
144-
Ring field is populated as follows:
145-
ring tokens: 50 100 150 200 250 300 400 500
146-
corresponding node ids: 2 1 2 3 1 2 3 1
144+
Ring field is populated as follows:
145+
ring tokens: 50 100 150 200 250 300 400 500
146+
corresponding node ids: 2 1 2 3 1 2 3 1
147147
148-
Keyspaces:
149-
names: "rf2" "rf3"
150-
strategies: simple simple
151-
rep factors: 2 3
148+
Keyspaces:
149+
names: "rf2" "rf3"
150+
strategies: simple simple
151+
rep factors: 2 3
152152
*/
153153
func mockTopologyTokenAwareSimpleStrategy() *topology {
154154
dummyNodes := []*Node{
@@ -239,24 +239,24 @@ func TestTokenAwareSimpleStrategyPolicy(t *testing.T) { //nolint:paralleltest //
239239
}
240240

241241
/*
242-
mockTopologyTokenAwareNetworkStrategy creates cluster topology with info about 8 nodes
243-
living in two different datacenters.
242+
mockTopologyTokenAwareNetworkStrategy creates cluster topology with info about 8 nodes
243+
living in two different datacenters.
244244
245-
Ring field is populated as follows:
246-
ring tokens: 50 100 150 200 250 300 400 500 510
247-
corresponding node ids: 1 5 2 1 6 4 8 7 3
245+
Ring field is populated as follows:
246+
ring tokens: 50 100 150 200 250 300 400 500 510
247+
corresponding node ids: 1 5 2 1 6 4 8 7 3
248248
249-
Datacenter: waw
250-
nodes in rack r1: 1 2
251-
nodes in rack r2: 3 4
249+
Datacenter: waw
250+
nodes in rack r1: 1 2
251+
nodes in rack r2: 3 4
252252
253-
Datacenter: her
254-
nodes in rack r3: 5 6
255-
nodes in rack r4: 7 8
253+
Datacenter: her
254+
nodes in rack r3: 5 6
255+
nodes in rack r4: 7 8
256256
257-
Keyspace: "waw/her"
258-
strategy: network topology
259-
replication factors: waw: 2 her: 3
257+
Keyspace: "waw/her"
258+
strategy: network topology
259+
replication factors: waw: 2 her: 3
260260
*/
261261
func mockTopologyTokenAwareDCAwareStrategy() *topology {
262262
dummyNodes := []*Node{

0 commit comments

Comments
 (0)