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
ffb41231
Commit
ffb41231
authored
Jan 15, 2015
by
Jeromy
Browse files
starting to move important events over to EventBegin/Done
parent
b9011990
Changes
1
Show whitespace changes
Inline
Side-by-side
crypto/secio/protocol.go
View file @
ffb41231
...
@@ -81,7 +81,9 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
...
@@ -81,7 +81,9 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
}
}
log
.
Debugf
(
"handshake: %s <--start--> %s"
,
s
.
localPeer
,
s
.
remotePeer
)
log
.
Debugf
(
"handshake: %s <--start--> %s"
,
s
.
localPeer
,
s
.
remotePeer
)
log
.
Event
(
ctx
,
"secureHandshakeStart"
,
s
.
localPeer
)
e
:=
log
.
EventBegin
(
ctx
,
"secureHandshake"
,
s
.
localPeer
)
defer
e
.
Done
()
s
.
local
.
permanentPubKey
=
s
.
localKey
.
GetPublic
()
s
.
local
.
permanentPubKey
=
s
.
localKey
.
GetPublic
()
myPubKeyBytes
,
err
:=
s
.
local
.
permanentPubKey
.
Bytes
()
myPubKeyBytes
,
err
:=
s
.
local
.
permanentPubKey
.
Bytes
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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