Skip to content

Commit

Permalink
fix(ipfs): coreapi not being reallocated when going online
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Nov 16, 2018
1 parent 1637e23 commit 7394a3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipfs/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func NewFilestore(config ...func(cfg *StoreCfg)) (*Filestore, error) {

if cfg.Node != nil {
return &Filestore{
cfg: cfg,
node: cfg.Node,
capi: coreapi.NewCoreAPI(cfg.Node),
}, nil
}

Expand Down Expand Up @@ -85,6 +87,7 @@ func (fs *Filestore) GoOnline() error {
*fs = Filestore{
cfg: cfg,
node: node,
capi: coreapi.NewCoreAPI(node),
}
return nil
}
Expand Down

0 comments on commit 7394a3c

Please sign in to comment.