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
93b06f34
Commit
93b06f34
authored
9 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timeout to ipns resolution at startup
parent
1d5f68cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ipnsfs/system.go
ipnsfs/system.go
+3
-1
No files found.
ipnsfs/system.go
View file @
93b06f34
...
...
@@ -159,8 +159,10 @@ func (fs *Filesystem) newKeyRoot(parent context.Context, k ci.PrivKey) (*KeyRoot
}
}
mnode
,
err
:=
fs
.
dserv
.
Get
(
ctx
,
pointsTo
)
tctx
,
_
:=
context
.
WithTimeout
(
parent
,
time
.
Second
*
5
)
mnode
,
err
:=
fs
.
dserv
.
Get
(
tctx
,
pointsTo
)
if
err
!=
nil
{
log
.
Errorf
(
"Failed to retreive value '%s' for ipns entry: %s
\n
"
,
pointsTo
,
err
)
return
nil
,
err
}
...
...
This diff is collapsed.
Click to expand it.
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