eth/downloader: use count instead of peers, clearer

This commit is contained in:
Péter Szilágyi
2015-05-11 17:06:42 +03:00
parent ebbd8b0743
commit fa53c5e074
2 changed files with 4 additions and 4 deletions

View File

@ -154,8 +154,8 @@ func (ps *peerSet) Peer(id string) *peer {
return ps.peers[id]
}
// Peers returns if the current number of peers in the set.
func (ps *peerSet) Peers() int {
// Len returns if the current number of peers in the set.
func (ps *peerSet) Len() int {
ps.lock.RLock()
defer ps.lock.RUnlock()