Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
0f0a36c6
Commit
0f0a36c6
authored
8 years ago
by
Eric Harris-Braun
Browse files
Options
Download
Email Patches
Plain Diff
more imports cleanup, another dup.
parent
1b406994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/echo/main.go
+1
-2
examples/echo/main.go
with
1 addition
and
2 deletions
+1
-2
examples/echo/main.go
View file @
0f0a36c6
...
...
@@ -10,7 +10,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"
...
...
@@ -142,7 +141,7 @@ func main() {
// doEcho reads some data from a stream, writes it back and closes the
// stream.
func
doEcho
(
s
i
net
.
Stream
)
{
func
doEcho
(
s
net
.
Stream
)
{
buf
:=
make
([]
byte
,
1024
)
n
,
err
:=
s
.
Read
(
buf
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help