mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-27 11:05:06 +00:00
connect first switch to others (Refs #808)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user