Skip to content
Snippets Groups Projects
Commit 96e1315c authored by ForrestWeston's avatar ForrestWeston
Browse files

AddWithContext wraps custom context


AddWithContext should use the custom context when calling
NewAdder

License: MIT
Signed-off-by: default avatarForrestWeston <forrest@protocol.ai>
parent 96b87238
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment