Make unbounded channels size warning exact (part 2) (#13504)

This commit is contained in:
Dmitry Markin authored and GitHub committed 2023-03-07 10:57:26 +03:00
1 parent 58d1d9e117
commit 3118026576
14 files changed
+216 -347

No files matched your search

@@ -281,7 +281,7 @@ impl SpawnEssentialTaskHandle {
let essential_failed = self.essential_failed_tx.clone();
let essential_task = std::panic::AssertUnwindSafe(task).catch_unwind().map(move |_| {
log::error!("Essential task `{}` failed. Shutting down service.", name);
let _ = essential_failed.close_channel();
let _ = essential_failed.close();
});
let _ = self.inner.spawn_inner(name, group, essential_task, task_type);