pstoremgr: Rename success to connectedPeers
This commit is contained in:
parent
2d5b31ad6a
commit
65ad06c9c9
|
@ -271,7 +271,7 @@ func (pm *Manager) Bootstrap(count int) []peer.ID {
|
||||||
pinfos := toSort.pinfos
|
pinfos := toSort.pinfos
|
||||||
lenKnown := len(pinfos)
|
lenKnown := len(pinfos)
|
||||||
totalConns := 0
|
totalConns := 0
|
||||||
success := []peer.ID{}
|
connectedPeers := []peer.ID{}
|
||||||
|
|
||||||
// keep conecting while we have peers in the store
|
// keep conecting while we have peers in the store
|
||||||
// and we have not reached count.
|
// 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)
|
logger.Infof("connected to %s", pinfo.ID)
|
||||||
totalConns++
|
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
|
// SetPriority attaches a priority to a peer. 0 means more priority than
|
||||||
|
|
Loading…
Reference in New Issue
Block a user