Commit 9c45696a authored by Jeromy's avatar Jeromy
Browse files

rewrite as single line defer logs

parent ffb41231
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment