Skip to content

Commit

Permalink
Remove redundant type cast
Browse files Browse the repository at this point in the history
This commit removes a redundant type cast in gossip/comm/comm_impl.go

Change-Id: Ie8b921a5097f0d05f6645e67c31940c9daec0eb5
Signed-off-by: Yacov Manevich <[email protected]>
  • Loading branch information
yacovm authored and lindluni committed Apr 23, 2021
1 parent ed1026c commit 7db78b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/comm/comm_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (c *commImpl) authenticateRemotePeer(stream stream, initiator, isProbe bool
}
// Final step - verify the signature on the connection message itself
verifier := func(peerIdentity []byte, signature, message []byte) error {
pkiID := c.idMapper.GetPKIidOfCert(api.PeerIdentityType(peerIdentity))
pkiID := c.idMapper.GetPKIidOfCert(peerIdentity)
return c.idMapper.Verify(pkiID, signature, message)
}
err = m.Verify(receivedMsg.Identity, verifier)
Expand Down

0 comments on commit 7db78b3

Please sign in to comment.