mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-19 22:42:24 +00:00
2d0b3a300f
To make sure finalizers run, we use channel for synchronization, and a separate goroutine for trigger runtime.GC every 1 second. In practice, just two consecutive runtime.GC calls can make all finalizers will run, but using a separate goroutine make the code more robust and not depend on garbage collector internal implementation. Fixes #6452