Skip to content

Commit

Permalink
Merge pull request #181 from zippy/master
Browse files Browse the repository at this point in the history
more imports cleanup, another dup.
  • Loading branch information
whyrusleeping committed Mar 9, 2017
2 parents ff5be0e + 0f0a36c commit 51ad894
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (

golog "github.com/ipfs/go-log"
host "github.com/libp2p/go-libp2p-host"
inet "github.com/libp2p/go-libp2p-net"
net "github.com/libp2p/go-libp2p-net"
peer "github.com/libp2p/go-libp2p-peer"
pstore "github.com/libp2p/go-libp2p-peerstore"
Expand Down Expand Up @@ -145,7 +144,7 @@ func main() {

// doEcho reads some data from a stream, writes it back and closes the
// stream.
func doEcho(s inet.Stream) {
func doEcho(s net.Stream) {
buf := make([]byte, 1024)
n, err := s.Read(buf)
if err != nil {
Expand Down

0 comments on commit 51ad894

Please sign in to comment.