go-pulse/core/bloombits
tokikuch c2cfe35f12
core/bloombits: fix deadlock when matcher session hits an error (#28184)
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-25 15:35:24 +02: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 (#28184) 2023-09-25 15:35:24 +02:00
scheduler_test.go core/bloombits: use atomic type (#26993) 2023-03-28 03:05:29 -04:00
scheduler.go core, eth: clean up bloom filtering, add some tests 2017-09-06 11:14:19 +03:00