Skip to content

Commit 7a536af

Browse files
authored
chore: fix some comments (#110)
Signed-off-by: rustco <[email protected]>
1 parent f790332 commit 7a536af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: shim/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func (h *Handler) handleDelState(collection string, key string, channelID string
386386
return fmt.Errorf("[%s] incorrect chaincode message %s received. Expecting %s or %s", shorttxid(responseMsg.Txid), responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
387387
}
388388

389-
// handlerPurgeState communicates with the peer to purge a state from private data
389+
// handlePurgeState communicates with the peer to purge a state from private data
390390
func (h *Handler) handlePurgeState(collection string, key string, channelID string, txid string) error {
391391
payloadBytes := marshalOrPanic(&pb.DelState{Collection: collection, Key: key})
392392
msg := &pb.ChaincodeMessage{Type: pb.ChaincodeMessage_PURGE_PRIVATE_DATA, Payload: payloadBytes, Txid: txid, ChannelId: channelID}

Diff for: v2/shim/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func (h *Handler) handleDelState(collection string, key string, channelID string
386386
return fmt.Errorf("[%s] incorrect chaincode message %s received. Expecting %s or %s", shorttxid(responseMsg.Txid), responseMsg.Type, peer.ChaincodeMessage_RESPONSE, peer.ChaincodeMessage_ERROR)
387387
}
388388

389-
// handlerPurgeState communicates with the peer to purge a state from private data
389+
// handlePurgeState communicates with the peer to purge a state from private data
390390
func (h *Handler) handlePurgeState(collection string, key string, channelID string, txid string) error {
391391
payloadBytes := marshalOrPanic(&peer.DelState{Collection: collection, Key: key})
392392
msg := &peer.ChaincodeMessage{Type: peer.ChaincodeMessage_PURGE_PRIVATE_DATA, Payload: payloadBytes, Txid: txid, ChannelId: channelID}

0 commit comments

Comments
 (0)