summaryrefslogtreecommitdiff
path: root/libs/shared/src/nats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/shared/src/nats.rs')
-rw-r--r--libs/shared/src/nats.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/shared/src/nats.rs b/libs/shared/src/nats.rs
index dc922d5..3529c46 100644
--- a/libs/shared/src/nats.rs
+++ b/libs/shared/src/nats.rs
@@ -19,7 +19,7 @@ pub struct NatsConfiguration {
pub host: String,
}
-impl From<NatsConfiguration> for Pin<Box<dyn Future<Output = anyhow::Result<Client>>>> {
+impl From<NatsConfiguration> for Pin<Box<dyn Future<Output = anyhow::Result<Client>> + Send>> {
fn from(value: NatsConfiguration) -> Self {
Box::pin(async move { Ok(async_nats::connect(value.host).await?) })
}