more imports cleanup, another dup.

This commit is contained in:
Eric Harris-Braun 2017-02-22 08:37:38 -05:00
parent 1b406994dc
commit 0f0a36c62c
1 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ import (
golog "github.com/ipfs/go-log" golog "github.com/ipfs/go-log"
host "github.com/libp2p/go-libp2p-host" host "github.com/libp2p/go-libp2p-host"
inet "github.com/libp2p/go-libp2p-net"
net "github.com/libp2p/go-libp2p-net" net "github.com/libp2p/go-libp2p-net"
peer "github.com/libp2p/go-libp2p-peer" peer "github.com/libp2p/go-libp2p-peer"
pstore "github.com/libp2p/go-libp2p-peerstore" pstore "github.com/libp2p/go-libp2p-peerstore"
@ -142,7 +141,7 @@ func main() {
// doEcho reads some data from a stream, writes it back and closes the // doEcho reads some data from a stream, writes it back and closes the
// stream. // stream.
func doEcho(s inet.Stream) { func doEcho(s net.Stream) {
buf := make([]byte, 1024) buf := make([]byte, 1024)
n, err := s.Read(buf) n, err := s.Read(buf)
if err != nil { if err != nil {