Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-swarm
Commits
e647659b
Commit
e647659b
authored
Feb 15, 2019
by
Matt Joiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code format
parent
3dded3dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
swarm_dial.go
swarm_dial.go
+1
-1
No files found.
swarm_dial.go
View file @
e647659b
...
...
@@ -275,7 +275,7 @@ func (s *Swarm) dial(ctx context.Context, p peer.ID) (*Conn, error) {
logdial
[
"dial"
]
=
"failure"
// start off with failure. set to "success" at the end.
sk
:=
s
.
peers
.
PrivKey
(
s
.
local
)
logdial
[
"encrypted"
]
=
(
sk
!=
nil
)
// log wether this will be an encrypted dial or not.
logdial
[
"encrypted"
]
=
sk
!=
nil
// log w
h
ether this will be an encrypted dial or not.
if
sk
==
nil
{
// fine for sk to be nil, just log.
log
.
Debug
(
"Dial not given PrivateKey, so WILL NOT SECURE conn."
)
...
...
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