bsc/core/bloombits
tokikuch 35b21cac14
core/bloombits: fix deadlock when matcher session hits an error (#1895)
When MatcherSession encounters an error, it attempts to close the session.
Closing waits for all goroutines to finish, including the 'distributor'.
However, the distributor will not exit until all requests have returned.

This patch fixes the issue by delivering the (empty) result to the distributor
before calling Close().
2023-09-27 15:00:27 +08:00
..
doc.go core, eth: clean up bloom filtering, add some tests 2017-09-06 11:14:19 +03:00
generator_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
generator.go core/bloombits: faster generator (#21625) 2020-10-06 16:34:29 +03:00
matcher_test.go core/bloombits: use atomic type (#26993) 2023-03-28 03:05:29 -04:00
matcher.go core/bloombits: fix deadlock when matcher session hits an error (#1895) 2023-09-27 15:00:27 +08:00
scheduler_test.go core/bloombits: use atomic type (#26993) 2023-03-28 03:05:29 -04:00
scheduler.go fix: code compatibility fixes 2022-07-05 11:14:21 +08:00