Skip to content

Commit

Permalink
fix(p2p): pass missing context to ipfsfs.GoOnline
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed May 6, 2019
1 parent 3bf96bd commit 43a4b2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2p/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/qri-io/ioes"
"github.com/qri-io/qfs/cafs/ipfs"
ipfs_filestore "github.com/qri-io/qfs/cafs/ipfs"
"github.com/qri-io/qri/config"
"github.com/qri-io/qri/p2p/test"
p2ptest "github.com/qri-io/qri/p2p/test"
"github.com/qri-io/qri/repo"

crypto "gx/ipfs/QmPvyPwuCgJ7pDmrKDxRtsScJgBaM5h4EpRL2qQJsmXf4n/go-libp2p-crypto"
Expand Down Expand Up @@ -152,7 +152,7 @@ func (n *QriNode) GoOnline() (err error) {
// on the ipfs node's p2p connections.
if ipfsfs, ok := n.Repo.Store().(*ipfs_filestore.Filestore); ok {
if !ipfsfs.Online() {
if err := ipfsfs.GoOnline(); err != nil {
if err := ipfsfs.GoOnline(n.ctx); err != nil {
return err
}
}
Expand Down

0 comments on commit 43a4b2e

Please sign in to comment.