1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-23 21:47:52 +08:00

fix for weird repo init issue

This commit is contained in:
Jeromy
2015-03-18 15:52:09 -07:00
parent e9ee1a36e6
commit 6bf341302c

View File

@ -148,7 +148,9 @@ func InitializeKeyspace(ctx context.Context, ds dag.DAGService, pub Publisher, p
return err
}
err = pins.Pin(emptyDir, false)
// pin recursively because this might already be pinned
// and doing a direct pin would throw an error in that case
err = pins.Pin(emptyDir, true)
if err != nil {
return err
}