remove Peer.SetVersionAndConnections

further shrinking Peer API
This commit is contained in:
Matthias Radestock committed 2015-05-11 17:19:43 +01:00
1 parent 86ba3be4f7
commit 426d8edb31
3 files changed
+4 -10

No files matched your search

-7
View File
@@ -42,13 +42,6 @@ func (peer *Peer) Info() string {
return fmt.Sprint(peer.String(), " (v", peer.version, ") (UID ", peer.UID, ")")
}
func (peer *Peer) SetVersionAndConnections(version uint64, connections map[PeerName]Connection) {
peer.Lock()
defer peer.Unlock()
peer.version = version
peer.connections = connections
}
// Calculate the routing table from this peer to all peers reachable
// from it, returning a "next hop" map of PeerNameX -> PeerNameY,
// which says "in order to send a message to X, the peer should send