@cryptotaxi247 / kubo / commits / 0b50080b6

seccat: fix secio context

License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>

Lars Gierth committed Nov 21, 2015 at 01:21 UTC 0b50080b68bf611858c6bb6b501a4cfe30ca34a8
1 file changed +2 -1
cmd/seccat/seccat.go
+2 -1
@@ -18,6 +18,7 @@ import (
18 "os/signal"
19 "syscall"
20
21 + context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
22 ci "github.com/ipfs/go-ipfs/p2p/crypto"
23 secio "github.com/ipfs/go-ipfs/p2p/crypto/secio"
24 peer "github.com/ipfs/go-ipfs/p2p/peer"
@@ -155,7 +156,7 @@ func connect(args args) error {
156 // OK, let's setup the channel.
157 sk := ps.PrivKey(p)
158 sg := secio.SessionGenerator{LocalID: p, PrivateKey: sk}
158 - sess, err := sg.NewSession(nil, rwc)
159 + sess, err := sg.NewSession(context.TODO(), rwc)
160 if err != nil {
161 return err
162 }