Skip to content

Commit 87d4da9

Browse files
authored
chore: fix some function names in comment (#5235)
Signed-off-by: racequite <[email protected]>
1 parent 19364e1 commit 87d4da9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/chaincode/accesscontrol/mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (r *certMapper) genCert(name string) (*tlsgen.CertKeyPair, error) {
6767
return keyPair, nil
6868
}
6969

70-
// ExtractCertificateHash extracts the hash of the certificate from the stream
70+
// extractCertificateHashFromContext extracts the hash of the certificate from the stream
7171
func extractCertificateHashFromContext(ctx context.Context) []byte {
7272
pr, extracted := peer.FromContext(ctx)
7373
if !extracted {

gossip/comm/crypto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func certHashFromRawCert(rawCert []byte) []byte {
2121
return util.ComputeSHA256(rawCert)
2222
}
2323

24-
// ExtractCertificateHash extracts the hash of the certificate from the stream
24+
// extractCertificateHashFromContext extracts the hash of the certificate from the stream
2525
func extractCertificateHashFromContext(ctx context.Context) []byte {
2626
pr, extracted := peer.FromContext(ctx)
2727
if !extracted {

0 commit comments

Comments
 (0)