Skip to content

Commit c1e7a77

Browse files
committed
fix: use cancellable task for external scores sync
spawn_background_processor_task is reserved for the single LDK background processor. The external scores sync was incorrectly using it, which caused a debug_assert panic when Node::start() later tried to spawn the actual background processor. Switch to spawn_cancellable_background_task which matches the pattern used by other periodic background tasks (RGS sync, peer reconnection, broadcast queue).
1 parent 1cced75 commit c1e7a77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scoring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn setup_background_pathfinding_scores_sync(
2525

2626
let logger = Arc::clone(&logger);
2727

28-
runtime.spawn_background_processor_task(async move {
28+
runtime.spawn_cancellable_background_task(async move {
2929
let mut interval = tokio::time::interval(EXTERNAL_PATHFINDING_SCORES_SYNC_INTERVAL);
3030
loop {
3131
tokio::select! {

0 commit comments

Comments
 (0)