Skip to content

Commit

Permalink
fix function name (#4810)
Browse files Browse the repository at this point in the history
Signed-off-by: looklose <shishuaiqun@yeah.net>
  • Loading branch information
looklose committed Apr 10, 2024
1 parent 2696b66 commit fe073c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/policies/inquire/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (pair comparablePrincipalSetPair) MergeWithPlurality() ComparablePrincipalS
// comparablePrincipalSetPairs aggregates []comparablePrincipalSetPairs
type comparablePrincipalSetPairs []comparablePrincipalSetPair

// ToPrincipalSets converts the comparablePrincipalSetPairs to ComparablePrincipalSets
// ToMergedPrincipalSets converts the comparablePrincipalSetPairs to ComparablePrincipalSets
// while taking into account plurality of each pair
func (pairs comparablePrincipalSetPairs) ToMergedPrincipalSets() ComparablePrincipalSets {
var res ComparablePrincipalSets
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/lifecycle/scc.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func validateCollectionConfigs(collConfigs []*pb.StaticCollectionConfig, mspMgr
return nil
}

// validateCollectionConfigAgainstMsp checks whether the supplied collection configuration
// validateCollectionConfigMemberOrgsPolicy checks whether the supplied collection configuration
// complies to the given msp configuration
func validateCollectionConfigMemberOrgsPolicy(coll *pb.StaticCollectionConfig, mspMgr msp.MSPManager) error {
if coll.MemberOrgsPolicy == nil {
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/platforms/node/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (p *Platform) Name() string {
return pb.ChaincodeSpec_NODE.String()
}

// ValidateSpec validates Go chaincodes
// ValidatePath validates Go chaincodes
func (p *Platform) ValidatePath(rawPath string) error {
path, err := url.Parse(rawPath)
if err != nil || path == nil {
Expand Down

0 comments on commit fe073c9

Please sign in to comment.