mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 02:30:39 +08:00
seccat: fix secio context
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
@ -18,6 +18,7 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
|
context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
||||||
ci "github.com/ipfs/go-ipfs/p2p/crypto"
|
ci "github.com/ipfs/go-ipfs/p2p/crypto"
|
||||||
secio "github.com/ipfs/go-ipfs/p2p/crypto/secio"
|
secio "github.com/ipfs/go-ipfs/p2p/crypto/secio"
|
||||||
peer "github.com/ipfs/go-ipfs/p2p/peer"
|
peer "github.com/ipfs/go-ipfs/p2p/peer"
|
||||||
@ -155,7 +156,7 @@ func connect(args args) error {
|
|||||||
// OK, let's setup the channel.
|
// OK, let's setup the channel.
|
||||||
sk := ps.PrivKey(p)
|
sk := ps.PrivKey(p)
|
||||||
sg := secio.SessionGenerator{LocalID: p, PrivateKey: sk}
|
sg := secio.SessionGenerator{LocalID: p, PrivateKey: sk}
|
||||||
sess, err := sg.NewSession(nil, rwc)
|
sess, err := sg.NewSession(context.TODO(), rwc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user