mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-31 20:10:38 +00:00
Clippy
This commit is contained in:
@@ -130,6 +130,15 @@ where
|
||||
condvar: Arc<Condvar>, // Notified when idle worker should wake up
|
||||
}
|
||||
|
||||
impl<J: Job> Default for Pool<J>
|
||||
where
|
||||
J::ErrorType: Debug,
|
||||
{
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<J: Job> Pool<J>
|
||||
where
|
||||
J::ErrorType: Debug,
|
||||
|
||||
@@ -60,7 +60,7 @@ lazy_static! {
|
||||
/// Global registry of threads
|
||||
static ref THREADS: Mutex<HashMap<u64, Arc<PageServerThread>>> = Mutex::new(HashMap::new());
|
||||
|
||||
// TODO make these per thread?
|
||||
// TODO make these per thread for targetted shutdown, also for cleanup.
|
||||
/// Condvars to notify after shutdown request
|
||||
static ref SHUTDOWN_CONDVARS: Mutex<Vec<Arc<Condvar>>> = Mutex::new(Vec::new());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user