correct spelling to US english (#6077)

This commit is contained in:
Callum Waters
2021-02-11 18:59:18 +01:00
committed by GitHub
parent 059d42866c
commit 162f67cf26
61 changed files with 392 additions and 392 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function getCode() {
else
# protobuf auto adds `omitempty` to everything so code OK and empty data/log
# will not even show when marshalled into json
# apparently we can use github.com/golang/protobuf/jsonpb to do the marshalling ...
# apparently we can use github.com/golang/protobuf/jsonpb to do the marshaling ...
echo 0
fi
}
+1 -1
View File
@@ -72,7 +72,7 @@ The test runner has the following stages, which can also be executed explicitly
* `logs`: outputs all node logs.
* `tail`: tails (follows) node logs until cancelled.
* `tail`: tails (follows) node logs until canceled.
## Tests
+1 -1
View File
@@ -19,7 +19,7 @@ type State struct {
Values map[string]string
Hash []byte
// private fields aren't marshalled to disk.
// private fields aren't marshaled to disk.
file string
persistInterval uint64
initialHeight uint64
+2 -2
View File
@@ -14,7 +14,7 @@ import (
)
// Load generates transactions against the network until the given
// context is cancelled.
// context is canceled.
func Load(ctx context.Context, testnet *e2e.Testnet) error {
// Since transactions are executed across all nodes in the network, we need
// to reduce transaction load for larger networks to avoid using too much
@@ -64,7 +64,7 @@ func Load(ctx context.Context, testnet *e2e.Testnet) error {
}
}
// loadGenerate generates jobs until the context is cancelled
// loadGenerate generates jobs until the context is canceled
func loadGenerate(ctx context.Context, chTx chan<- types.Tx) {
for i := 0; i < math.MaxInt64; i++ {
// We keep generating the same 1000 keys over and over, with different values.
+1 -1
View File
@@ -171,7 +171,7 @@ func NewCLI() *CLI {
cli.root.AddCommand(&cobra.Command{
Use: "load",
Short: "Generates transaction load until the command is cancelled",
Short: "Generates transaction load until the command is canceled",
RunE: func(cmd *cobra.Command, args []string) error {
return Load(context.Background(), cli.testnet)
},
+2 -2
View File
@@ -56,8 +56,8 @@ func (cs *State) readReplayMessage(msg *tmcon.TimedWALMessage, newStepSub types.
if m.Height != m2.Height || m.Round != m2.Round || m.Step != m2.Step {
return fmt.Errorf("roundState mismatch. Got %v; Expected %v", m2, m)
}
case <-newStepSub.Cancelled():
return fmt.Errorf("failed to read off newStepSub.Out(). newStepSub was cancelled")
case <-newStepSub.Canceled():
return fmt.Errorf("failed to read off newStepSub.Out(). newStepSub was canceled")
case <-ticker:
return fmt.Errorf("failed to read off newStepSub.Out()")
}
+1 -1
View File
@@ -387,7 +387,7 @@ func (cs *State) addVote(
}
// Height mismatch is ignored.
// Not necessarily a bad peer, but not favourable behaviour.
// Not necessarily a bad peer, but not favorable behavior.
if vote.Height != cs.Height {
cs.Logger.Debug("vote ignored and not added", "voteHeight", vote.Height, "csHeight", cs.Height, "peerID", peerID)
return