all: fix typos in comments (#29873)
fix using `a` & `the` simutaneously
This commit is contained in:
parent
b8cf1636d4
commit
06263b1b35
@ -91,7 +91,7 @@ data, and verifies that all snapshot storage data has a corresponding account.
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "inspect-account",
|
Name: "inspect-account",
|
||||||
Usage: "Check all snapshot layers for the a specific account",
|
Usage: "Check all snapshot layers for the specific account",
|
||||||
ArgsUsage: "<address | hash>",
|
ArgsUsage: "<address | hash>",
|
||||||
Action: checkAccount,
|
Action: checkAccount,
|
||||||
Flags: flags.Merge(utils.NetworkFlags, utils.DatabaseFlags),
|
Flags: flags.Merge(utils.NetworkFlags, utils.DatabaseFlags),
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
// request represents a bloom retrieval task to prioritize and pull from the local
|
// request represents a bloom retrieval task to prioritize and pull from the local
|
||||||
// database or remotely from the network.
|
// database or remotely from the network.
|
||||||
type request struct {
|
type request struct {
|
||||||
section uint64 // Section index to retrieve the a bit-vector from
|
section uint64 // Section index to retrieve the bit-vector from
|
||||||
bit uint // Bit index within the section to retrieve the vector of
|
bit uint // Bit index within the section to retrieve the vector of
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ var (
|
|||||||
// to allow concurrent retrievals.
|
// to allow concurrent retrievals.
|
||||||
accountConcurrency = 16
|
accountConcurrency = 16
|
||||||
|
|
||||||
// storageConcurrency is the number of chunks to split the a large contract
|
// storageConcurrency is the number of chunks to split a large contract
|
||||||
// storage trie into to allow concurrent retrievals.
|
// storage trie into to allow concurrent retrievals.
|
||||||
storageConcurrency = 16
|
storageConcurrency = 16
|
||||||
)
|
)
|
||||||
|
@ -400,7 +400,7 @@ func (b *batch) Put(key, value []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete inserts the a key removal into the batch for later committing.
|
// Delete inserts the key removal into the batch for later committing.
|
||||||
func (b *batch) Delete(key []byte) error {
|
func (b *batch) Delete(key []byte) error {
|
||||||
b.b.Delete(key)
|
b.b.Delete(key)
|
||||||
b.size += len(key)
|
b.size += len(key)
|
||||||
|
@ -227,7 +227,7 @@ func (b *batch) Put(key, value []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete inserts the a key removal into the batch for later committing.
|
// Delete inserts the key removal into the batch for later committing.
|
||||||
func (b *batch) Delete(key []byte) error {
|
func (b *batch) Delete(key []byte) error {
|
||||||
b.writes = append(b.writes, keyvalue{string(key), nil, true})
|
b.writes = append(b.writes, keyvalue{string(key), nil, true})
|
||||||
b.size += len(key)
|
b.size += len(key)
|
||||||
|
@ -575,7 +575,7 @@ func (b *batch) Put(key, value []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete inserts the a key removal into the batch for later committing.
|
// Delete inserts the key removal into the batch for later committing.
|
||||||
func (b *batch) Delete(key []byte) error {
|
func (b *batch) Delete(key []byte) error {
|
||||||
b.b.Delete(key, nil)
|
b.b.Delete(key, nil)
|
||||||
b.size += len(key)
|
b.size += len(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user