Skip to content

Commit

Permalink
chore: fix some comments for struct field
Browse files Browse the repository at this point in the history
Signed-off-by: closeobserve <[email protected]>
  • Loading branch information
closeobserve authored and denyeart committed Jul 18, 2024
1 parent ea74ec0 commit 628f162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/ledger/kvledger/kv_ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions core/ledger/ledger_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <namespace, key>
SetStateMetadata(namespace, key string, metadata map[string][]byte) error
Expand Down

0 comments on commit 628f162

Please sign in to comment.