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
9c45696a
Commit
9c45696a
authored
Jan 15, 2015
by
Jeromy
Browse files
rewrite as single line defer logs
parent
ffb41231
Changes
1
Show whitespace changes
Inline
Side-by-side
crypto/secio/protocol.go
View file @
9c45696a
...
...
@@ -81,8 +81,7 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
}
log
.
Debugf
(
"handshake: %s <--start--> %s"
,
s
.
localPeer
,
s
.
remotePeer
)
e
:=
log
.
EventBegin
(
ctx
,
"secureHandshake"
,
s
.
localPeer
)
defer
e
.
Done
()
defer
log
.
EventBegin
(
ctx
,
"secureHandshake"
,
s
.
localPeer
)
.
Done
()
s
.
local
.
permanentPubKey
=
s
.
localKey
.
GetPublic
()
myPubKeyBytes
,
err
:=
s
.
local
.
permanentPubKey
.
Bytes
()
...
...
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