Commit c7b30f68 authored by yenkuanlee's avatar yenkuanlee

correct the mistake of comment

parent a796d2f1
...@@ -74,7 +74,7 @@ func (s *secureSession) RemotePeer() peer.ID { ...@@ -74,7 +74,7 @@ func (s *secureSession) RemotePeer() peer.ID {
return s.remotePeer return s.remotePeer
} }
// RemotePeer retrieves the remote peer. // RemotePublicKey retrieves the remote public key.
func (s *secureSession) RemotePublicKey() ci.PubKey { func (s *secureSession) RemotePublicKey() ci.PubKey {
if err := s.Handshake(); err != nil { if err := s.Handshake(); err != nil {
return nil return nil
......
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