mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-02 13:03:11 +00:00
remove protocol correctness test
This is checked when the protocol is *registered*. There's no reason to test it twice.
This commit is contained in:
parent
2999d4efba
commit
6c70a3d7b5
3
codec.go
3
codec.go
@ -43,9 +43,6 @@ func stringToBytes(s string) ([]byte, error) {
|
||||
sp = []string{"/" + strings.Join(sp, "/")}
|
||||
}
|
||||
|
||||
if p.Transcoder == nil {
|
||||
return nil, fmt.Errorf("no transcoder for %s protocol", p.Name)
|
||||
}
|
||||
a, err := p.Transcoder.StringToBytes(sp[0])
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse %s: %s %s", p.Name, sp[0], err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user