From e009747dd017f850a1dd7e49bc32e4bd727483cc Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 23 Jun 2021 14:32:21 +0300 Subject: [PATCH] remove unused file --- src/queue.rs | 7 ------- src/worker_pool.rs | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 src/queue.rs diff --git a/src/queue.rs b/src/queue.rs deleted file mode 100644 index fbb80f9..0000000 --- a/src/queue.rs +++ /dev/null @@ -1,7 +0,0 @@ -pub trait JobQueue { - type Job; - type Error; - - fn push(job: Self::Job) -> Result<(), Self::Error>; - fn pop(job: Self::Job) -> Result<(), Self::Error>; -} diff --git a/src/worker_pool.rs b/src/worker_pool.rs index b7245ec..a9d7d3d 100644 --- a/src/worker_pool.rs +++ b/src/worker_pool.rs @@ -35,7 +35,7 @@ impl WorkerThread { } pub fn spawn_in_pool(name: String, restarts: u64) { - let mut builder = thread::Builder::new().name(name.clone()); + let builder = thread::Builder::new().name(name.clone()); info!( "starting a worker thread {}, number of restarts {}",