mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
Merge pull request #8377 from ellemouton/towerTestFlakeFix
wtclient: ensure correct disk mode for overflow queue
This commit is contained in:
@@ -476,6 +476,13 @@ func (q *DiskOverflowQueue[T]) feedMemQueue() {
|
||||
}
|
||||
}
|
||||
|
||||
// If we did manage to fetch a task from disk, we make
|
||||
// sure to set the toDisk mode to true since we may
|
||||
// block indefinitely while trying to push the tasks to
|
||||
// the memQueue in which case we want the drainInputList
|
||||
// goroutine to write any new tasks to disk.
|
||||
q.toDisk.Store(true)
|
||||
|
||||
for i, task := range tasks {
|
||||
select {
|
||||
case q.memQueue <- task:
|
||||
|
Reference in New Issue
Block a user