mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/bloombits: fix typos
This commit is contained in:
parent
caf65b500a
commit
86df4ab757
2 changed files with 4 additions and 4 deletions
|
|
@ -58,7 +58,7 @@ type partialMatches struct {
|
||||||
// bit with the given number of fetch elements, or a response for such a request.
|
// bit with the given number of fetch elements, or a response for such a request.
|
||||||
// It can also have the actual results set to be used as a delivery data struct.
|
// It can also have the actual results set to be used as a delivery data struct.
|
||||||
//
|
//
|
||||||
// The contest and error fields are used by the light client to terminate matching
|
// The context and error fields are used by the light client to terminate matching
|
||||||
// early if an error is encountered on some path of the pipeline.
|
// early if an error is encountered on some path of the pipeline.
|
||||||
type Retrieval struct {
|
type Retrieval struct {
|
||||||
Bit uint
|
Bit uint
|
||||||
|
|
@ -389,7 +389,7 @@ func (m *Matcher) distributor(dist chan *request, session *MatcherSession) {
|
||||||
shutdown = session.quit // Shutdown request channel, will gracefully wait for pending requests
|
shutdown = session.quit // Shutdown request channel, will gracefully wait for pending requests
|
||||||
)
|
)
|
||||||
|
|
||||||
// assign is a helper method fo try to assign a pending bit an actively
|
// assign is a helper method to try to assign a pending bit an actively
|
||||||
// listening servicer, or schedule it up for later when one arrives.
|
// listening servicer, or schedule it up for later when one arrives.
|
||||||
assign := func(bit uint) {
|
assign := func(bit uint) {
|
||||||
select {
|
select {
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ func TestMatcherRandom(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests that the matcher can properly find matches if the starting block is
|
// Tests that the matcher can properly find matches if the starting block is
|
||||||
// shifter from a multiple of 8. This is needed to cover an optimisation with
|
// shifted from a multiple of 8. This is needed to cover an optimisation with
|
||||||
// bitset matching https://github.com/ethereum/go-ethereum/issues/15309.
|
// bitset matching https://github.com/ethereum/go-ethereum/issues/15309.
|
||||||
func TestMatcherShifted(t *testing.T) {
|
func TestMatcherShifted(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
@ -106,7 +106,7 @@ func TestWildcardMatcher(t *testing.T) {
|
||||||
testMatcherBothModes(t, nil, 0, 10000, 0)
|
testMatcherBothModes(t, nil, 0, 10000, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// makeRandomIndexes generates a random filter system, composed on multiple filter
|
// makeRandomIndexes generates a random filter system, composed of multiple filter
|
||||||
// criteria, each having one bloom list component for the address and arbitrarily
|
// criteria, each having one bloom list component for the address and arbitrarily
|
||||||
// many topic bloom list components.
|
// many topic bloom list components.
|
||||||
func makeRandomIndexes(lengths []int, max int) [][]bloomIndexes {
|
func makeRandomIndexes(lengths []int, max int) [][]bloomIndexes {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue