(
&self,
_request: Request<ListRepositoriesRequest>,
)
| 298 | } |
| 299 | |
| 300 | async fn list_repositories( |
| 301 | &self, |
| 302 | _request: Request<ListRepositoriesRequest>, |
| 303 | ) -> Result<Response<ListRepositoriesResponse>, Status> { |
| 304 | let repositories = self |
| 305 | .state |
| 306 | .list() |
| 307 | .into_iter() |
| 308 | .map(|handle| RepositorySummary { |
| 309 | repository: Some(handle.repository_ref()), |
| 310 | open: true, |
| 311 | local_path: Some(handle.root.display().to_string()), |
| 312 | }) |
| 313 | .collect(); |
| 314 | Ok(Response::new(ListRepositoriesResponse { repositories })) |
| 315 | } |
| 316 | |
| 317 | async fn shutdown( |
| 318 | &self, |
nothing calls this directly
no test coverage detected