(
&self,
#[cfg(target_family = "windows")] stream: tokio::net::TcpStream,
#[cfg(target_family = "unix")] stream: tokio::net::UnixStream,
id: u64,
)
| 267 | } |
| 268 | |
| 269 | pub fn worker_connected( |
| 270 | &self, |
| 271 | #[cfg(target_family = "windows")] stream: tokio::net::TcpStream, |
| 272 | #[cfg(target_family = "unix")] stream: tokio::net::UnixStream, |
| 273 | id: u64, |
| 274 | ) { |
| 275 | let mut w = self.inner.lock().unwrap(); |
| 276 | if let Some(pending) = w.pending_starts.remove(&id) { |
| 277 | drop(w); |
| 278 | |
| 279 | let full = init_worker_handles(pending, stream); |
| 280 | info!(tier = full.priority_index, "worker connected"); |
| 281 | self.add_worker_to_pool(full); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | pub fn worker_statuses(&self) -> Vec<WorkerStatus> { |
| 286 | let w = self.inner.lock().unwrap(); |
no test coverage detected