(&self, ctx: &Context<'_>)
| 124 | } |
| 125 | |
| 126 | async fn repo(&self, ctx: &Context<'_>) -> Result<Repository> { |
| 127 | match ctx |
| 128 | .data_unchecked::<Store>() |
| 129 | .repo(self.0.repo_id.to_string()) |
| 130 | .await |
| 131 | { |
| 132 | Ok(Some(repo)) => Ok(repo), |
| 133 | _ => Err(Error::NotFound(format!( |
| 134 | "repo not found: {}", |
| 135 | self.0.repo_id |
| 136 | ))), |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | async fn repo_id(&self) -> String { |
| 141 | self.0.repo_id.to_string() |
nothing calls this directly
no outgoing calls
no test coverage detected