Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion network/src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ impl<P, E, N, T> ParachainNetwork for ValidationNetwork<P, E, N, T> where

let table_router_clone = table_router.clone();
let executor = self.executor.clone();
let exit = self.exit.clone();

// spin up a task in the background that processes all incoming statements
// TODO: propagate statements on a timer?
Expand All @@ -248,7 +249,7 @@ impl<P, E, N, T> ParachainNetwork for ValidationNetwork<P, E, N, T> where
table_router: table_router_clone,
};

executor.spawn(process_task);
executor.spawn(process_task.select(exit).then(|_| Ok(())));
});

table_router
Expand Down