mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 00:38:08 +08:00
take the pinlock when updating pins
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
5c8580d6ac
commit
ab69f0fb4d
@ -67,6 +67,8 @@ func (api *PinAPI) Update(ctx context.Context, from coreiface.Path, to coreiface
|
||||
return err
|
||||
}
|
||||
|
||||
defer api.node.Blockstore.PinLock().Unlock()
|
||||
|
||||
fp, err := api.core().ResolvePath(ctx, from)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user