Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #4933

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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