remove Peer.SetVersionAndConnections
further shrinking Peer API
This commit is contained in:
1 parent
86ba3be4f7
commit
426d8edb31
3 files changed
+4
-10
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user