pstoremgr: Rename success to connectedPeers

This commit is contained in:
Hector Sanjuan 2019-06-10 11:22:39 +02:00
parent 2d5b31ad6a
commit 65ad06c9c9

View File

@ -271,7 +271,7 @@ func (pm *Manager) Bootstrap(count int) []peer.ID {
pinfos := toSort.pinfos
lenKnown := len(pinfos)
totalConns := 0
success := []peer.ID{}
connectedPeers := []peer.ID{}
// keep conecting while we have peers in the store
// and we have not reached count.
@ -296,9 +296,9 @@ func (pm *Manager) Bootstrap(count int) []peer.ID {
}
logger.Infof("connected to %s", pinfo.ID)
totalConns++
success = append(success, pinfo.ID)
connectedPeers = append(connectedPeers, pinfo.ID)
}
return success
return connectedPeers
}
// SetPriority attaches a priority to a peer. 0 means more priority than