From 0b50080b68bf611858c6bb6b501a4cfe30ca34a8 Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Sat, 21 Nov 2015 01:21:38 +0100 Subject: [PATCH] seccat: fix secio context License: MIT Signed-off-by: Lars Gierth --- cmd/seccat/seccat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/seccat/seccat.go b/cmd/seccat/seccat.go index 4574e383f..ac1829ae9 100644 --- a/cmd/seccat/seccat.go +++ b/cmd/seccat/seccat.go @@ -18,6 +18,7 @@ import ( "os/signal" "syscall" + context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ci "github.com/ipfs/go-ipfs/p2p/crypto" secio "github.com/ipfs/go-ipfs/p2p/crypto/secio" peer "github.com/ipfs/go-ipfs/p2p/peer" @@ -155,7 +156,7 @@ func connect(args args) error { // OK, let's setup the channel. sk := ps.PrivKey(p) sg := secio.SessionGenerator{LocalID: p, PrivateKey: sk} - sess, err := sg.NewSession(nil, rwc) + sess, err := sg.NewSession(context.TODO(), rwc) if err != nil { return err }