MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / refresh_language

Function refresh_language

src/dashboard/code_diagnostics_api.rs:102–109  ·  view source on GitHub ↗
(
    State(state): State<DashboardState>,
    AxumPath(language): AxumPath<String>,
)

Source from the content-addressed store, hash-verified

100}
101
102pub(crate) async fn refresh_language(
103 State(state): State<DashboardState>,
104 AxumPath(language): AxumPath<String>,
105) -> ApiResult {
106 refresh_one(&state, &language).await?;
107 let snapshot = diagnostics_snapshot(&state).await?;
108 Ok(Json(json!(snapshot)))
109}
110
111async fn refresh_one(state: &DashboardState, language: &str) -> std::result::Result<(), JsonError> {
112 reconcile_project_language_activity(state).await?;

Callers

nothing calls this directly

Calls 2

refresh_oneFunction · 0.85
diagnostics_snapshotFunction · 0.85

Tested by

no test coverage detected