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
c534daef
Commit
c534daef
authored
10 years ago
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(namesys) use one-off error
parent
04e270a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
namesys/dns.go
namesys/dns.go
+2
-3
No files found.
namesys/dns.go
View file @
c534daef
package
namesys
import
(
"fmt"
"net"
b58
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
isd
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-is-domain"
mh
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
u
"github.com/jbenet/go-ipfs/util"
)
// DNSResolver implements a Resolver on DNS domains
...
...
@@ -44,5 +43,5 @@ func (r *DNSResolver) Resolve(name string) (string, error) {
return
t
,
nil
}
return
""
,
u
.
Err
NotFound
return
""
,
fmt
.
Err
orf
(
"namesys: %v not found"
,
name
)
}
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