1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 09:34:03 +08:00

refactor(swarm) specify direction of secure chans

This commit is contained in:
Brian Tiger Chow
2014-09-12 22:54:14 -07:00
parent b249ebe84e
commit 7bf9ff617d

View File

@ -25,8 +25,8 @@ type Conn struct {
Closed chan bool Closed chan bool
Outgoing *msgio.Chan Outgoing *msgio.Chan
Incoming *msgio.Chan Incoming *msgio.Chan
secIn chan []byte secIn <-chan []byte
secOut chan []byte secOut chan<- []byte
} }
// ConnMap maps Keys (Peer.IDs) to Connections. // ConnMap maps Keys (Peer.IDs) to Connections.