From cee7978e2479c23d51fabf4ade4efd3503b66d2a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 29 Sep 2021 11:21:07 -0400 Subject: [PATCH] Fix client duplicate creation. --- crates/apub/src/activity_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/apub/src/activity_queue.rs b/crates/apub/src/activity_queue.rs index f05c4fce4..3359df5d2 100644 --- a/crates/apub/src/activity_queue.rs +++ b/crates/apub/src/activity_queue.rs @@ -89,7 +89,7 @@ where private_key: actor.private_key().context(location_info!())?, }; if env::var("LEMMY_TEST_SEND_SYNC").is_ok() { - do_send(message, &Client::default()).await?; + do_send(message, context.client()).await?; } else { context.activity_queue.queue::(message)?; }