MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / best_inspector_session

Function best_inspector_session

packages/server/src/api/routes.rs:4142–4145  ·  view source on GitHub ↗
(mut candidates: Vec<InspectorSession>)

Source from the content-addressed store, hash-verified

4140}
4141
4142fn best_inspector_session(mut candidates: Vec<InspectorSession>) -> Option<InspectorSession> {
4143 candidates.sort_by_key(inspector_session_score);
4144 candidates.into_iter().next()
4145}
4146
4147fn inspector_session_score(session: &InspectorSession) -> u8 {
4148 if session

Calls

no outgoing calls