Skip to content

Commit c9d118c

Browse files
committedNov 23, 2015
Merge pull request #1987 from ipfs/seccat-context
seccat: fix secio context
2 parents 93c2309 + 0b50080 commit c9d118c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎cmd/seccat/seccat.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"os/signal"
1919
"syscall"
2020

21+
context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
2122
ci "github.com/ipfs/go-ipfs/p2p/crypto"
2223
secio "github.com/ipfs/go-ipfs/p2p/crypto/secio"
2324
peer "github.com/ipfs/go-ipfs/p2p/peer"
@@ -155,7 +156,7 @@ func connect(args args) error {
155156
// OK, let's setup the channel.
156157
sk := ps.PrivKey(p)
157158
sg := secio.SessionGenerator{LocalID: p, PrivateKey: sk}
158-
sess, err := sg.NewSession(nil, rwc)
159+
sess, err := sg.NewSession(context.TODO(), rwc)
159160
if err != nil {
160161
return err
161162
}

0 commit comments

Comments
 (0)
Please sign in to comment.