diff options
author | Erik Escher <erik@erikescher.de> | 2022-04-13 17:46:47 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-04-22 12:54:25 +0200 |
commit | 054ac1eaa9f5742f7d77b65549e4869aa1979333 (patch) | |
tree | e44001a4a473023ab8e6dd73ecefb47e829c8c66 | |
parent | 49404a83e84dd6e2f5ad194dbfa8b7b165069a47 (diff) |
net: Make AClient Send and Sync
This allows futures with a Keyserver in scope to be Send, allowing them
to be used with multithreaded async libraries such as tokio.
-rw-r--r-- | net/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs index 39fc2d71..dbd47dc3 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -362,7 +362,7 @@ impl KeyServer { } } -trait AClient { +trait AClient: Send + Sync { fn do_get(&mut self, uri: Url) -> ResponseFuture; fn do_request(&mut self, request: Request<Body>) -> ResponseFuture; } |