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-unixfs
Commits
edbaa3f6
Commit
edbaa3f6
authored
Oct 28, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(namesys) use the error that already exists
parent
0bfadea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
namesys/dns.go
namesys/dns.go
+1
-4
No files found.
namesys/dns.go
View file @
edbaa3f6
package
namesys
import
(
"fmt"
"net"
b58
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
...
...
@@ -9,8 +8,6 @@ import (
mh
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
)
var
ErrNotFound
=
fmt
.
Errorf
(
"namesys: name not found"
)
// DNSResolver implements a Resolver on DNS domains
type
DNSResolver
struct
{
// TODO: maybe some sort of caching?
...
...
@@ -45,5 +42,5 @@ func (r *DNSResolver) Resolve(name string) (string, error) {
return
t
,
nil
}
return
""
,
Err
NotFoun
d
return
""
,
Err
ResolveFaile
d
}
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