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
b78b29c8
Commit
b78b29c8
authored
Nov 01, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
namesys: return right after errors
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
9eba0e4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
namesys/routing.go
namesys/routing.go
+5
-0
No files found.
namesys/routing.go
View file @
b78b29c8
...
...
@@ -147,13 +147,16 @@ func (r *routingResolver) resolveOnce(ctx context.Context, name string) (path.Pa
if
err
!=
nil
{
log
.
Warning
(
"RoutingResolve get failed."
)
resp
<-
err
return
}
entry
=
new
(
pb
.
IpnsEntry
)
err
=
proto
.
Unmarshal
(
val
,
entry
)
if
err
!=
nil
{
resp
<-
err
return
}
resp
<-
nil
}()
...
...
@@ -162,7 +165,9 @@ func (r *routingResolver) resolveOnce(ctx context.Context, name string) (path.Pa
pubk
,
err
:=
routing
.
GetPublicKey
(
r
.
routing
,
ctx
,
hash
)
if
err
!=
nil
{
resp
<-
err
return
}
pubkey
=
pubk
resp
<-
nil
}()
...
...
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