Remove stuff that is not needed with new ConnectionMaker approach

This commit is contained in:
Bryan Boreham committed 2014-09-10 12:29:21 +01:00
1 parent 84aeaf340a
commit 26f8a68a82
4 files changed
+1 -16

No files matched your search

-5
View File
@@ -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 {