mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 07:18:12 +08:00
fix defered unlock of pin lock in AddR
This wasn't causing any problems because this function is actually dead code (but possibly useful?). License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
c1a488f55c
commit
bf5fd74a8e
@ -322,7 +322,7 @@ func AddWithContext(ctx context.Context, n *core.IpfsNode, r io.Reader) (string,
|
||||
|
||||
// AddR recursively adds files in |path|.
|
||||
func AddR(n *core.IpfsNode, root string) (key string, err error) {
|
||||
n.Blockstore.PinLock().Unlock()
|
||||
defer n.Blockstore.PinLock().Unlock()
|
||||
|
||||
stat, err := os.Lstat(root)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user