@cryptotaxi247 / kubo / commits / 7bf9ff617

refactor(swarm) specify direction of secure chans

Brian Tiger Chow committed Sep 12, 2014 at 22:54 UTC 7bf9ff617daf25c01d0e042555d99378e6def159
1 file changed +2 -2
swarm/conn.go
+2 -2
@@ -25,8 +25,8 @@ type Conn struct {
25 Closed chan bool
26 Outgoing *msgio.Chan
27 Incoming *msgio.Chan
28 - secIn chan []byte
29 - secOut chan []byte
28 + secIn <-chan []byte
29 + secOut chan<- []byte
30 }
31
32 // ConnMap maps Keys (Peer.IDs) to Connections.