(state: &Arc<ServerState>)
| 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( |
no test coverage detected