From e2bec4bf2e1d6554d94ba63c1428f772e0b8d4ca Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 20 Nov 2023 19:51:16 +0100 Subject: [PATCH] . --- kubi-pool/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubi-pool/src/lib.rs b/kubi-pool/src/lib.rs index 066aa53..ae1e8c1 100644 --- a/kubi-pool/src/lib.rs +++ b/kubi-pool/src/lib.rs @@ -13,7 +13,7 @@ struct Task { fn task_loop() { let tasks = VecDeque::>::new(); loop { - //todo + }; } @@ -22,7 +22,7 @@ impl KubiPool { Self { callback, threads: (0..threads).map(|_| { - std::thread::spawn(task_loop::) + std::thread::spawn(move || task_loop::()) }).collect(), } }