connect first switch to others (Refs #808)

This commit is contained in:
Anton Kaliaev 2017-11-06 23:43:40 -05:00
parent ec87c740a7
commit e785697a64
No known key found for this signature in database
GPG Key ID: 7B6881D965918214

View File

@ -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