Skip to content

Commit

Permalink
chore: fix some comments (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: rustco <[email protected]>
  • Loading branch information
rustco authored Jun 20, 2024
1 parent f790332 commit 7a536af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shim/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (h *Handler) handleDelState(collection string, key string, channelID string
return fmt.Errorf("[%s] incorrect chaincode message %s received. Expecting %s or %s", shorttxid(responseMsg.Txid), responseMsg.Type, pb.ChaincodeMessage_RESPONSE, pb.ChaincodeMessage_ERROR)
}

// handlerPurgeState communicates with the peer to purge a state from private data
// handlePurgeState communicates with the peer to purge a state from private data
func (h *Handler) handlePurgeState(collection string, key string, channelID string, txid string) error {
payloadBytes := marshalOrPanic(&pb.DelState{Collection: collection, Key: key})
msg := &pb.ChaincodeMessage{Type: pb.ChaincodeMessage_PURGE_PRIVATE_DATA, Payload: payloadBytes, Txid: txid, ChannelId: channelID}
Expand Down
2 changes: 1 addition & 1 deletion v2/shim/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (h *Handler) handleDelState(collection string, key string, channelID string
return fmt.Errorf("[%s] incorrect chaincode message %s received. Expecting %s or %s", shorttxid(responseMsg.Txid), responseMsg.Type, peer.ChaincodeMessage_RESPONSE, peer.ChaincodeMessage_ERROR)
}

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

0 comments on commit 7a536af

Please sign in to comment.