make worker pool public

This commit is contained in:
Ayrat Badykov 2021-06-24 08:23:02 +03:00
parent a2e4885bdb
commit 75a0de365e
No known key found for this signature in database
GPG key ID: 16AE533AB7A3E8C6

View file

@ -2,12 +2,12 @@ use crate::executor::Executor;
use crate::postgres::Postgres; use crate::postgres::Postgres;
use std::thread; use std::thread;
struct WorkerPool { pub struct WorkerPool {
pub number_of_workers: u16, pub number_of_workers: u16,
pub name: String, pub name: String,
} }
struct WorkerThread { pub struct WorkerThread {
pub name: String, pub name: String,
pub restarts: u64, pub restarts: u64,
} }