MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / put_refresh_state

Function put_refresh_state

crates/openshell-server/src/provider_refresh.rs:40–48  ·  view source on GitHub ↗
(
    store: &Store,
    state: &StoredProviderCredentialRefreshState,
)

Source from the content-addressed store, hash-verified

38}
39
40pub async fn put_refresh_state(
41 store: &Store,
42 state: &StoredProviderCredentialRefreshState,
43) -> Result<(), Status> {
44 store
45 .put_scoped_message(state, &state.provider_id)
46 .await
47 .map_err(|e| Status::internal(format!("persist provider refresh state failed: {e}")))
48}
49
50pub async fn list_refresh_states_for_provider(
51 store: &Store,

Calls 1

put_scoped_messageMethod · 0.80

Tested by

no test coverage detected