Skip to content

Commit

Permalink
chore: fix some problematic function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: thirdkeyword <fliterdashen@gmail.com>
  • Loading branch information
thirdkeyword authored and satota2 committed Nov 29, 2024
1 parent f1c6e88 commit b8746e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/ledger/testutil/test_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func ConstructTransaction(
)
}

// ConstructTransaction constructs a transaction for testing with header type
// ConstructTransactionWithHeaderType constructs a transaction for testing with header type
func ConstructTransactionWithHeaderType(
t *testing.T,
simulationResults []byte,
Expand Down
2 changes: 1 addition & 1 deletion core/aclmgmt/defaultaclprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (d *defaultACLProviderImpl) CheckACL(resName string, channelID string, idin
}
}

// CheckACL provides default behavior by mapping channelless resources to their ACL.
// CheckACLNoChannel provides default behavior by mapping channelless resources to their ACL.
func (d *defaultACLProviderImpl) CheckACLNoChannel(resName string, idinfo interface{}) error {
policy := d.pResourcePolicyMap[resName]
if policy == "" {
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func (h *Handler) notifyRegistry(err error) {
h.Registry.Ready(h.chaincodeID)
}

// handleRegister is invoked when chaincode tries to register.
// HandleRegister is invoked when chaincode tries to register.
func (h *Handler) HandleRegister(msg *pb.ChaincodeMessage) {
h.stateLock.RLock()
state := h.state
Expand Down
2 changes: 1 addition & 1 deletion core/common/ccprovider/ccprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func isPrintable(name string) bool {
return strings.IndexFunc(name, notASCII) == -1
}

// GetChaincodePackage returns the chaincode package from the file system
// GetChaincodePackageFromPath returns the chaincode package from the file system
func GetChaincodePackageFromPath(ccNameVersion string, ccInstallPath string) ([]byte, error) {
path := fmt.Sprintf("%s/%s", ccInstallPath, strings.ReplaceAll(ccNameVersion, ":", "."))
var ccbytes []byte
Expand Down

0 comments on commit b8746e1

Please sign in to comment.