(session: &mut ClientSession)
| 17 | } |
| 18 | |
| 19 | pub async fn get_worker_map(session: &mut ClientSession) -> anyhow::Result<WorkerMap> { |
| 20 | let response = get_remote_lists(session, true).await?; |
| 21 | Ok(response |
| 22 | .workers |
| 23 | .into_iter() |
| 24 | .map(|w| (w.id, w.configuration.hostname)) |
| 25 | .collect()) |
| 26 | } |
no test coverage detected