Skip to content

Commit

Permalink
chore: fix some comments (#4933)
Browse files Browse the repository at this point in the history
Signed-off-by: withbest <seekseat@outlook.com>
  • Loading branch information
withbest authored Jul 28, 2024
1 parent e3008ad commit 3d08097
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/ledger/kvledger/benchmark/experiments/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const chaincodeName = "testChaincode"
var conf *configuration

// TestMain loads the yaml file and parses the test parameters
// the configration constructed from test parameters is stored in
// package level variable and is accessible to an expriment
// the configuration constructed from test parameters is stored in
// package level variable and is accessible to an experiment
// The test params should be passed in the following format in the golang benchmark test command
// "-testParams=-DataDir="myDir", -NumChains=10, ..."
// This is necessary to parse in the TestMain function because otherwise, the golang test framework
Expand Down
2 changes: 1 addition & 1 deletion core/ledger/kvledger/tests/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/stretchr/testify/require"
)

// client helps in a transction simulation. The client keeps accumlating the results of each simulated transaction
// client helps in a transaction simulation. The client keeps accumulating the results of each simulated transaction
// in a slice and at a later stage can be used to cut a test block for committing.
// In a test, for each instantiated ledger, a single instance of a client is typically sufficient.
type client struct {
Expand Down
2 changes: 1 addition & 1 deletion core/ledger/kvledger/tests/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ type membershipInfoProvider struct {

func (p *membershipInfoProvider) AmMemberOf(channelName string, collectionPolicyConfig *peer.CollectionPolicyConfig) (bool, error) {
members := convertFromMemberOrgsPolicy(collectionPolicyConfig)
fmt.Printf("memebers = %s\n", members)
fmt.Printf("members = %s\n", members)
for _, m := range members {
if m == p.myOrgMSPID {
return true, nil
Expand Down
4 changes: 2 additions & 2 deletions core/ledger/kvledger/tests/testledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type testLedger struct {
t *testing.T
}

// createTestLedgerFromGenesisBlk creates a new ledger and retruns a 'testhelper' for the ledger
// createTestLedgerFromGenesisBlk creates a new ledger and returns a 'testhelper' for the ledger
func (env *env) createTestLedgerFromGenesisBlk(id string) *testLedger {
t := env.t
genesisBlk, err := constructTestGenesisBlock(id)
Expand Down Expand Up @@ -87,7 +87,7 @@ func (env *env) createTestLedgerFromSnapshot(snapshotDir string) *testLedger {
}
}

// openTestLedger opens an existing ledger and retruns a 'testhelper' for the ledger
// openTestLedger opens an existing ledger and returns a 'testhelper' for the ledger
func (env *env) openTestLedger(id string) *testLedger {
t := env.t
lgr, err := env.ledgerMgr.OpenLedger(id)
Expand Down

0 comments on commit 3d08097

Please sign in to comment.