Commit 0b50080b authored by Lars Gierth's avatar Lars Gierth

seccat: fix secio context

License: MIT
Signed-off-by: default avatarLars Gierth <larsg@systemli.org>
parent 93c23099
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment