mirror of https://github.com/LemmyNet/lemmy.git
Fix client duplicate creation.
parent
fe112f460d
commit
cee7978e24
|
@ -89,7 +89,7 @@ where
|
||||||
private_key: actor.private_key().context(location_info!())?,
|
private_key: actor.private_key().context(location_info!())?,
|
||||||
};
|
};
|
||||||
if env::var("LEMMY_TEST_SEND_SYNC").is_ok() {
|
if env::var("LEMMY_TEST_SEND_SYNC").is_ok() {
|
||||||
do_send(message, &Client::default()).await?;
|
do_send(message, context.client()).await?;
|
||||||
} else {
|
} else {
|
||||||
context.activity_queue.queue::<SendActivityTask>(message)?;
|
context.activity_queue.queue::<SendActivityTask>(message)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue