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
39791b17
Unverified
Commit
39791b17
authored
Jun 12, 2018
by
Łukasz Kurowski
Committed by
GitHub
Jun 12, 2018
Browse files
function cannot be formatted as string
parent
a08d9e63
Changes
1
Show whitespace changes
Inline
Side-by-side
p2p/host/basic/basic_host.go
View file @
39791b17
...
@@ -432,7 +432,7 @@ func (h *BasicHost) resolveAddrs(ctx context.Context, pi pstore.PeerInfo) ([]ma.
...
@@ -432,7 +432,7 @@ func (h *BasicHost) resolveAddrs(ctx context.Context, pi pstore.PeerInfo) ([]ma.
// dialPeer opens a connection to peer, and makes sure to identify
// dialPeer opens a connection to peer, and makes sure to identify
// the connection once it has been opened.
// the connection once it has been opened.
func
(
h
*
BasicHost
)
dialPeer
(
ctx
context
.
Context
,
p
peer
.
ID
)
error
{
func
(
h
*
BasicHost
)
dialPeer
(
ctx
context
.
Context
,
p
peer
.
ID
)
error
{
log
.
Debugf
(
"host %s dialing %s"
,
h
.
ID
,
p
)
log
.
Debugf
(
"host %s dialing %s"
,
h
.
ID
()
,
p
)
c
,
err
:=
h
.
Network
()
.
DialPeer
(
ctx
,
p
)
c
,
err
:=
h
.
Network
()
.
DialPeer
(
ctx
,
p
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
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