func (peers *Peers) fetchAndAddRef(name PeerName) *Peer {
	peers.Lock()
	defer peers.Unlock()
	peer := peers.byName[name]
	if peer != nil {
		peer.localRefCount++
	}
	return peer
}
func (peers *Peers) fetchAndAddRef(name PeerName) *Peer {
	peers.Lock()
	defer peers.Unlock()
	peer := peers.byName[name]
	if peer != nil {
		peer.localRefCount++
	}
	return peer
}
func ( peers * Peers ) fetchAndAddRef ( name PeerName ) * Peer { peers . Lock ( ) defer peers . Unlock ( ) peer := peers . byName [ name ] if peer != nil { peer . localRefCount ++ } return peer }
// Like fetch, but increments local refcount.
Like fetch but increments local refcount .