summaryrefslogtreecommitdiff
path: root/libs/shared/src/nats.rs
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-03 00:14:27 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-03 00:14:27 +0400
commit91a27342dbee8ca0478f862df93bf502337f4c6e (patch)
treeaf5f4818d300934d8c9ea14896fe756fea13d578 /libs/shared/src/nats.rs
parentc3e47ff0b1b06ff26830e78b7e37e212d1e47200 (diff)
add all in one binary
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?) })
}