(&self, id: CatalogItemId)
| 102 | #[async_trait] |
| 103 | impl SecretsReader for InMemorySecretsController { |
| 104 | async fn read(&self, id: CatalogItemId) -> Result<Vec<u8>, anyhow::Error> { |
| 105 | let contents = self.data.lock().unwrap().get(&id).cloned(); |
| 106 | contents.ok_or_else(|| anyhow::anyhow!("secret does not exist")) |
| 107 | } |
| 108 | } |
no test coverage detected