(service: &Arc<AcpClientService>)
| 436 | } |
| 437 | |
| 438 | async fn load_client_config_json(service: &Arc<AcpClientService>) -> Result<Value> { |
| 439 | let json = service |
| 440 | .load_json_config() |
| 441 | .await |
| 442 | .map_err(|error| anyhow!(error.to_string()))?; |
| 443 | serde_json::from_str(&json).context("Failed to parse ACP client config") |
| 444 | } |
| 445 | |
| 446 | async fn save_client_config_json(service: &Arc<AcpClientService>, value: &Value) -> Result<()> { |
| 447 | let json = serde_json::to_string_pretty(value)?; |
no test coverage detected