Skip to content
GitLab
Menu
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
db919af6
Commit
db919af6
authored
Feb 21, 2017
by
Eric Harris-Braun
Browse files
imports cleanup, remove dup
parent
75ba71bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/echo/main.go
View file @
db919af6
...
...
@@ -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
,
p
eer
store
.
PermanentAddrTTL
)
ha
.
Peerstore
()
.
AddAddr
(
peerid
,
tptmaddr
,
pstore
.
PermanentAddrTTL
)
log
.
Println
(
"opening stream"
)
// make a new stream from host B to host A
...
...
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