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