MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / format_worker

Function format_worker

crates/hyperqueue/src/client/output/cli.rs:1518–1523  ·  view source on GitHub ↗
(id: WorkerId, worker_map: &WorkerMap)

Source from the content-addressed store, hash-verified

1516}
1517
1518fn format_worker(id: WorkerId, worker_map: &WorkerMap) -> &str {
1519 worker_map
1520 .get(&id)
1521 .map(|s| s.as_str())
1522 .unwrap_or_else(|| "N/A")
1523}
1524
1525fn format_workers<'a>(ids: Option<&[WorkerId]>, worker_map: &'a WorkerMap) -> Cow<'a, str> {
1526 match ids {

Callers 2

format_job_workersFunction · 0.85
format_workersFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected