From 628f1625985d8fb7c54fb110588e6ded38859f1c Mon Sep 17 00:00:00 2001 From: closeobserve Date: Fri, 19 Jul 2024 00:22:55 +0800 Subject: [PATCH] chore: fix some comments for struct field Signed-off-by: closeobserve --- core/ledger/kvledger/kv_ledger.go | 2 +- core/ledger/ledger_interface.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ledger/kvledger/kv_ledger.go b/core/ledger/kvledger/kv_ledger.go index e9ed93a35bc..ce87ec3c169 100644 --- a/core/ledger/kvledger/kv_ledger.go +++ b/core/ledger/kvledger/kv_ledger.go @@ -69,7 +69,7 @@ type kvLedger struct { hashProvider ledger.HashProvider config *ledger.Config - // isPvtDataStoreAheadOfBlockStore is read during missing pvtData + // isPvtstoreAheadOfBlkstore is read during missing pvtData // reconciliation and may be updated during a regular block commit. // Hence, we use atomic value to ensure consistent read. isPvtstoreAheadOfBlkstore atomic.Value diff --git a/core/ledger/ledger_interface.go b/core/ledger/ledger_interface.go index ce92d105d4f..e15ebea0b18 100644 --- a/core/ledger/ledger_interface.go +++ b/core/ledger/ledger_interface.go @@ -104,7 +104,7 @@ type PrivateDataConfig struct { // BatchesInterval is the minimum duration (milliseconds) between batches // for converting ineligible missing data entries into eligible entries. BatchesInterval int - // MatchBatchSize is the maximum size of batches when converting ineligible + // MaxBatchSize is the maximum size of batches when converting ineligible // missing data entries into eligible entries. MaxBatchSize int // PurgeInterval is the number of blocks to wait until purging expired @@ -310,7 +310,7 @@ type TxSimulator interface { SetState(namespace string, key string, value []byte) error // DeleteState deletes the given namespace and key DeleteState(namespace string, key string) error - // SetMultipleKeys sets the values for multiple keys in a single call + // SetStateMultipleKeys sets the values for multiple keys in a single call SetStateMultipleKeys(namespace string, kvs map[string][]byte) error // SetStateMetadata sets the metadata associated with an existing key-tuple SetStateMetadata(namespace, key string, metadata map[string][]byte) error