From 7a536afcd84092e483ae898a318b49dea7d9a404 Mon Sep 17 00:00:00 2001 From: rustco Date: Thu, 20 Jun 2024 17:34:09 +0900 Subject: [PATCH] chore: fix some comments (#110) Signed-off-by: rustco --- shim/handler.go | 2 +- v2/shim/handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shim/handler.go b/shim/handler.go index 9b66a087..be05c45a 100644 --- a/shim/handler.go +++ b/shim/handler.go @@ -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} diff --git a/v2/shim/handler.go b/v2/shim/handler.go index 5b4e2175..a465ae26 100644 --- a/v2/shim/handler.go +++ b/v2/shim/handler.go @@ -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}