summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorErik Escher <erik@erikescher.de>2022-04-13 17:46:47 +0200
committerJustus Winter <justus@sequoia-pgp.org>2022-04-22 12:54:25 +0200
commit054ac1eaa9f5742f7d77b65549e4869aa1979333 (patch)
treee44001a4a473023ab8e6dd73ecefb47e829c8c66 /net
parent49404a83e84dd6e2f5ad194dbfa8b7b165069a47 (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.
Diffstat (limited to 'net')
-rw-r--r--net/src/lib.rs2
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;
}