6a02fa1107
This commit moves the db calls for retrieving add and settle backlogs outide of the main event loop. All other db operations are performed outside of the event loop and synchronized via the invoice registry's mutex, which also synchronizes the order in which events submitted to be processed. This resolves various concurrency issues where notifications can be missed of inconsistent reads against the databse. This is especially important in this case because we are actually making two separate database calls. |
||
---|---|---|
.. | ||
interface.go | ||
invoice_expiry_watcher_test.go | ||
invoice_expiry_watcher.go | ||
invoiceregistry_test.go | ||
invoiceregistry.go | ||
log.go | ||
resolution_result.go | ||
resolution.go | ||
test_utils_test.go | ||
update.go |