Skip to content

Commit 0b50080

Browse files
author
Lars Gierth
committedNov 21, 2015
seccat: fix secio context
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
1 parent 93c2309 commit 0b50080

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.