Commit fd88c43
Fix task-slot collision when pathfinding scores sync is enabled
The pathfinding scores sync task claimed the runtime's single
background-processor slot, which LDK's background processor also claims
later during startup. With a scores sync URL configured, node startup
tripped a debug_assert in debug builds; in release builds the second
spawn silently dropped the scores-sync task's join handle, so the task
was detached and never joined at shutdown.
Spawn it as a cancellable background task instead, matching the RGS
gossip sync task, so it is cancelled with the other such tasks in
Node::stop.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 150f370 commit fd88c43
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
554 | 574 | | |
555 | 575 | | |
556 | 576 | | |
| |||
0 commit comments