regroup test utils; remove unused function.

This commit is contained in:
Raúl Kripalani 2018-09-07 18:45:58 +01:00
parent 027d289a66
commit 08de02b668
2 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
package test
import (
"github.com/libp2p/go-libp2p-peer"
ma "github.com/multiformats/go-multiaddr"
)
func peerId(ids string) peer.ID {
id, err := peer.IDB58Decode(ids)
if err != nil {
panic(err)
}
return id
}
func multiaddr(m string) ma.Multiaddr {
maddr, err := ma.NewMultiaddr(m)
if err != nil {
panic(err)
}
return maddr
}