use smaller buffer sizes for buffered channels

This commit is contained in:
Arceliar 2018-02-03 18:44:28 -06:00
parent 80a45b3859
commit 63aadf6e88
4 changed files with 8 additions and 8 deletions

View file

@ -167,7 +167,7 @@ func (iface *udpInterface) handleKeys(msg []byte, addr connAddr) {
peer: iface.core.peers.newPeer(&ks.box, &ks.sig),
linkIn: make(chan []byte, 1),
keysIn: make(chan *udpKeys, 1),
out: make(chan []byte, 1024),
out: make(chan []byte, 32),
}
/*
conn.in = func (msg []byte) { conn.peer.handlePacket(msg, conn.linkIn) }