diff --git a/async-nats/src/client.rs b/async-nats/src/client.rs index b4f1b0f87..1dc53f004 100644 --- a/async-nats/src/client.rs +++ b/async-nats/src/client.rs @@ -69,7 +69,7 @@ pub struct Client { pub(crate) sender: mpsc::Sender, next_subscription_id: Arc, subscription_capacity: usize, - inbox_prefix: String, + inbox_prefix: Arc, request_timeout: Option, max_payload: Arc, } @@ -90,7 +90,7 @@ impl Client { sender, next_subscription_id: Arc::new(AtomicU64::new(1)), subscription_capacity: capacity, - inbox_prefix, + inbox_prefix: inbox_prefix.into(), request_timeout, max_payload, }