mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
Before this commit, in the watchtower client's DiskOverflowQueue, there could be a situation _if no consumer was reading from the queue_ that could lead to an in-memory build up of backup tasks instead of the expected disk overflow. This commit fixes this by ensuring that if a task is read from disk, then the mode is set to disk mode to ensure that any new items are persisted to disk in this scenario. The unit tests added in the previous commit is updated here in order to show that the fix does in-fact fix the test. |
||
---|---|---|
.. | ||
addr_iterator.go | ||
addr_iterator_test.go | ||
backup_task.go | ||
backup_task_internal_test.go | ||
candidate_iterator.go | ||
candidate_iterator_test.go | ||
client.go | ||
client_test.go | ||
errors.go | ||
fuzz_test.go | ||
interface.go | ||
log.go | ||
manager.go | ||
queue.go | ||
queue_test.go | ||
sess_close_min_heap.go | ||
sess_close_min_heap_test.go | ||
session_negotiator.go | ||
session_queue.go | ||
stats.go |