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

+2 -1
View File
@@ -79,7 +79,8 @@ func (router *Router) tp(routers ...*Router) *Peer {
p := NewPeer(r.Ourself.Peer.Name, "", r.Ourself.Peer.UID, r.Ourself.Peer.version)
connections[r.Ourself.Peer.Name] = newMockConnection(peer, p)
}
peer.SetVersionAndConnections(router.Ourself.Peer.version, connections)
peer.version = router.Ourself.Peer.version
peer.connections = connections
return peer
}