mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
Merge pull request #4433 from ipfs/fix/coreunix-add/ctx
AddWithContext wraps custom context
This commit is contained in:
@ -307,7 +307,7 @@ func Add(n *core.IpfsNode, r io.Reader) (string, error) {
|
||||
func AddWithContext(ctx context.Context, n *core.IpfsNode, r io.Reader) (string, error) {
|
||||
defer n.Blockstore.PinLock().Unlock()
|
||||
|
||||
fileAdder, err := NewAdder(n.Context(), n.Pinning, n.Blockstore, n.DAG)
|
||||
fileAdder, err := NewAdder(ctx, n.Pinning, n.Blockstore, n.DAG)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user