1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-27 16:07:42 +08:00

Merge pull request #5122 from ipfs/kevina/filestore-hookup-fix

Fix how filestore is hooked up.
This commit is contained in:
Whyrusleeping
2018-06-18 01:56:52 +08:00
committed by GitHub

View File

@ -207,7 +207,7 @@ func setupNode(ctx context.Context, n *IpfsNode, cfg *BuildCfg) error {
if conf.Experimental.FilestoreEnabled {
// hash security
n.Filestore = filestore.NewFilestore(bs, n.Repo.FileManager())
n.Filestore = filestore.NewFilestore(cbs, n.Repo.FileManager())
n.Blockstore = bstore.NewGCBlockstore(n.Filestore, n.GCLocker)
n.Blockstore = &verifbs.VerifBSGC{GCBlockstore: n.Blockstore}
}