mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
connect first switch to others (Refs #808)
This commit is contained in:
parent
ec87c740a7
commit
e785697a64
@ -509,10 +509,8 @@ func MakeConnectedSwitches(cfg *cfg.P2PConfig, n int, initSwitch func(int, *Swit
|
||||
panic(err)
|
||||
}
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
for j := i; j < n; j++ {
|
||||
connect(switches, i, j)
|
||||
}
|
||||
for i := 1; i < n; i++ {
|
||||
connect(switches, 0, i)
|
||||
}
|
||||
|
||||
return switches
|
||||
|
Loading…
x
Reference in New Issue
Block a user