funding: implement reservation zombie sweeper
Before previous commits were squashed into this commit, zombie reservations were cleaned up individually when they timed out. However, this made the code more complex because each reservation had its own individual timer and thus it would have required the timer being cancelled any time the reservation was cancelled, which would have been harder to maintain. With this commit, zombie reservations are cleaned up by a zombie sweeper that is set off by a ticker instead, to make the code more maintainable.
This commit is contained in:
1 parent
5410725306
commit
75e45b830b
2 files changed
+95
-8
Reference in new issue
Block a user