all: fix typos in comments (#21118)

This commit is contained in:
Martin Michlmayr
2020-05-25 16:21:28 +08:00
committed by GitHub
parent 48e3b95e77
commit 4f2784b38f
55 changed files with 65 additions and 65 deletions

View File

@ -515,7 +515,7 @@ func (f *TxFetcher) loop() {
// Schedule a new transaction retrieval
f.scheduleFetches(timeoutTimer, timeoutTrigger, nil)
// No idea if we sheduled something or not, trigger the timer if needed
// No idea if we scheduled something or not, trigger the timer if needed
// TODO(karalabe): this is kind of lame, can't we dump it into scheduleFetches somehow?
f.rescheduleTimeout(timeoutTimer, timeoutTrigger)

View File

@ -30,7 +30,7 @@ import (
)
var (
// testTxs is a set of transactions to use during testing that have meaninful hashes.
// testTxs is a set of transactions to use during testing that have meaningful hashes.
testTxs = []*types.Transaction{
types.NewTransaction(5577006791947779410, common.Address{0x0f}, new(big.Int), 0, new(big.Int), nil),
types.NewTransaction(15352856648520921629, common.Address{0xbb}, new(big.Int), 0, new(big.Int), nil),
@ -449,7 +449,7 @@ func TestTransactionFetcherCleanupEmpty(t *testing.T) {
})
}
// Tests that non-returned transactions are either re-sheduled from a
// Tests that non-returned transactions are either re-scheduled from a
// different peer, or self if they are after the cutoff point.
func TestTransactionFetcherMissingRescheduling(t *testing.T) {
testTransactionFetcherParallel(t, txFetcherTest{