WIP: Give worktrees a reference to the UserStore
This will allow them to fetch user data when peers are added or removed. Still work to do though.
This commit is contained in:
parent
21aba54dc3
commit
9930e92412
7 changed files with 166 additions and 73 deletions
|
@ -172,6 +172,10 @@ impl FakeHttpClient {
|
|||
handler: Box::new(move |req| Box::pin(handler(req))),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn with_404_response() -> Arc<dyn HttpClient> {
|
||||
Self::new(|_| async move { Ok(ServerResponse::new(404)) })
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for FakeHttpClient {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue