From db919af6003895fb73b4932224a70886afd02fba Mon Sep 17 00:00:00 2001 From: Eric Harris-Braun Date: Tue, 21 Feb 2017 13:45:42 -0500 Subject: [PATCH] imports cleanup, remove dup --- examples/echo/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/echo/main.go b/examples/echo/main.go index 3fedee8..47e7ebd 100644 --- a/examples/echo/main.go +++ b/examples/echo/main.go @@ -13,7 +13,6 @@ import ( inet "github.com/libp2p/go-libp2p-net" net "github.com/libp2p/go-libp2p-net" peer "github.com/libp2p/go-libp2p-peer" - peerstore "github.com/libp2p/go-libp2p-peerstore" pstore "github.com/libp2p/go-libp2p-peerstore" swarm "github.com/libp2p/go-libp2p-swarm" bhost "github.com/libp2p/go-libp2p/p2p/host/basic" @@ -118,7 +117,7 @@ func main() { // We need to add the target to our peerstore, so we know how we can // contact it - ha.Peerstore().AddAddr(peerid, tptmaddr, peerstore.PermanentAddrTTL) + ha.Peerstore().AddAddr(peerid, tptmaddr, pstore.PermanentAddrTTL) log.Println("opening stream") // make a new stream from host B to host A -- GitLab