Skip to content

Commit

Permalink
p2p: sw.peers.List() is empty in sw.OnStart
Browse files Browse the repository at this point in the history
  • Loading branch information
cjqpker authored and ebuchman committed Jul 11, 2017
1 parent eed0297 commit 086544e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ func (sw *Switch) OnStart() error {
return err
}
}
// Start peers
for _, peer := range sw.peers.List() {
sw.startInitPeer(peer)
}

// Start listeners
for _, listener := range sw.listeners {
go sw.listenerRoutine(listener)
Expand Down

0 comments on commit 086544e

Please sign in to comment.