mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-13 12:18:00 +08:00
fix(coreapi/add): close the fake repo used when adding with hash-only
fixes #6744
This commit is contained in:
parent
6ded0ba0f8
commit
745708b85e
@ -69,6 +69,7 @@ func (api *UnixfsAPI) Add(ctx context.Context, files files.Node, opts ...options
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer nilnode.Close()
|
||||
addblockstore = nilnode.Blockstore
|
||||
exch = nilnode.Exchange
|
||||
pinning = nilnode.Pinning
|
||||
|
||||
Loading…
Reference in New Issue
Block a user