Browse Source

connect first switch to others (Refs #808)

pull/812/head
Anton Kaliaev 7 years ago
parent
commit
e785697a64
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      p2p/switch.go

+ 2
- 4
p2p/switch.go 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


Loading…
Cancel
Save