mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-24 05:59:55 +08:00
fix for weird repo init issue
This commit is contained in:
@ -148,7 +148,9 @@ func InitializeKeyspace(ctx context.Context, ds dag.DAGService, pub Publisher, p
|
|||||||
return err
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user