4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-06 08:44:06 +00:00

remove peer.linkIn channel and related logic

This commit is contained in:
Arceliar
2018-06-07 00:49:06 -05:00
parent ecf37cae8a
commit deb755e3e9
3 changed files with 16 additions and 28 deletions

View File

@ -209,7 +209,6 @@ func (iface *tcpInterface) handler(sock net.Conn, incoming bool) {
// Note that multiple connections to the same node are allowed
// E.g. over different interfaces
p := iface.core.peers.newPeer(&info.box, &info.sig)
p.linkIn = make(chan []byte, 1)
p.linkOut = make(chan []byte, 1)
in := func(bs []byte) {
p.handlePacket(bs)