Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
abe8ced8
Unverified
Commit
abe8ced8
authored
Dec 01, 2017
by
Whyrusleeping
Committed by
GitHub
Dec 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4433 from ipfs/fix/coreunix-add/ctx
AddWithContext wraps custom context
parents
66bde413
96e1315c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/coreunix/add.go
core/coreunix/add.go
+1
-1
No files found.
core/coreunix/add.go
View file @
abe8ced8
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment