Skip to content

Commit

Permalink
chore(common): fix some function names in comment (hyperledger#5052)
Browse files Browse the repository at this point in the history
Signed-off-by: huochexizhan <huochexizhan@outlook.com>
  • Loading branch information
huochexizhan authored Nov 19, 2024
1 parent fc231cd commit 698bc0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/channelconfig/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func createCfgBlockWithSupportedCapabilities(t *testing.T) *cb.Block {
return configBlock
}

// createCfgBlockWithUnSupportedCapabilities will create a config block that contains mismatched capabilities and should be rejected by the peer
// createCfgBlockWithUnsupportedCapabilities will create a config block that contains mismatched capabilities and should be rejected by the peer
func createCfgBlockWithUnsupportedCapabilities(t *testing.T) *cb.Block {
// Create a config
config := &cb.Config{
Expand Down
4 changes: 2 additions & 2 deletions common/crypto/tlsgen/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ func (c *ca) CertBytes() []byte {
return c.caCert.Cert
}

// newClientCertKeyPair returns a certificate and private key pair and nil,
// NewClientCertKeyPair returns a certificate and private key pair and nil,
// or nil, error in case of failure
// The certificate is signed by the CA and is used as a client TLS certificate
func (c *ca) NewClientCertKeyPair() (*CertKeyPair, error) {
return newCertKeyPair(false, false, c.caCert.Signer, c.caCert.TLSCert)
}

// newServerCertKeyPair returns a certificate and private key pair and nil,
// NewServerCertKeyPair returns a certificate and private key pair and nil,
// or nil, error in case of failure
// The certificate is signed by the CA and is used as a server TLS certificate
func (c *ca) NewServerCertKeyPair(hosts ...string) (*CertKeyPair, error) {
Expand Down
2 changes: 1 addition & 1 deletion common/policies/implicitmeta_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func ImplicitMetaPolicyWithSubPolicy(subPolicyName string, rule cb.ImplicitMetaP
}
}

// TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName and subPolicyName
// TemplateImplicitMetaPolicyWithSubPolicy creates a policy at the specified path with the given policyName and subPolicyName
func TemplateImplicitMetaPolicyWithSubPolicy(path []string, policyName string, subPolicyName string, rule cb.ImplicitMetaPolicy_Rule) *cb.ConfigGroup {
root := protoutil.NewConfigGroup()
group := root
Expand Down

0 comments on commit 698bc0b

Please sign in to comment.