Remove stuff that is not needed with new ConnectionMaker approach
This commit is contained in:
1 parent
84aeaf340a
commit
26f8a68a82
4 files changed
+1
-16
No files matched your search
@@ -121,11 +121,6 @@ func (peer *Peer) SetVersionAndConnections(version uint64, connections map[PeerN
|
||||
defer peer.Unlock()
|
||||
peer.version = version
|
||||
peer.connections = connections
|
||||
for remoteName, conn := range connections {
|
||||
if remoteName != peer.Router.Ourself.Name {
|
||||
peer.Router.ConnectionMaker.EnsureConnection(conn.RemoteTCPAddr())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (peer *Peer) Forward(dstPeer *Peer, df bool, frame []byte, dec *EthernetDecoder) error {
|
||||
|
||||
Reference in new issue
Block a user