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

Function enable_providers_v2

crates/openshell-server/src/grpc/policy.rs:4414–4427  ·  view source on GitHub ↗
(state: &Arc<ServerState>)

Source from the content-addressed store, hash-verified

4412 }
4413
4414 async fn enable_providers_v2(state: &Arc<ServerState>) {
4415 let global_settings = StoredSettings {
4416 revision: 1,
4417 settings: std::iter::once((
4418 settings::PROVIDERS_V2_ENABLED_KEY.to_string(),
4419 StoredSettingValue::Bool(true),
4420 ))
4421 .collect(),
4422 ..Default::default()
4423 };
4424 save_global_settings(state.store.as_ref(), &global_settings)
4425 .await
4426 .unwrap();
4427 }
4428
4429 async fn get_sandbox_policy(state: &Arc<ServerState>, sandbox_id: &str) -> ProtoSandboxPolicy {
4430 handle_get_sandbox_config(

Calls 1

save_global_settingsFunction · 0.85

Tested by

no test coverage detected