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

Function handle_get_list

crates/hyperqueue/src/server/client/mod.rs:828–842  ·  view source on GitHub ↗
(state_ref: &StateRef, workers: bool)

Source from the content-addressed store, hash-verified

826}
827
828fn handle_get_list(state_ref: &StateRef, workers: bool) -> ToClientMessage {
829 let state = state_ref.get();
830
831 let workers = if workers {
832 state
833 .get_workers()
834 .values()
835 .map(|w| w.make_info(None))
836 .collect()
837 } else {
838 Vec::new()
839 };
840
841 ToClientMessage::GetListResponse(GetListResponse { workers })
842}
843
844fn handle_worker_info(
845 state_ref: &StateRef,

Callers 1

client_rpc_loopFunction · 0.85

Calls 5

GetListResponseClass · 0.85
valuesMethod · 0.80
make_infoMethod · 0.80
getMethod · 0.45
get_workersMethod · 0.45

Tested by

no test coverage detected