From 6a6b63f6d67f4932af6e79abf0a20e8fd083aa8f Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Wed, 19 Jul 2023 12:49:22 +0200 Subject: [PATCH] Fix serialization --- async-nats/src/jetstream/consumer/pull.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-nats/src/jetstream/consumer/pull.rs b/async-nats/src/jetstream/consumer/pull.rs index e4651b61f..f9be7977e 100644 --- a/async-nats/src/jetstream/consumer/pull.rs +++ b/async-nats/src/jetstream/consumer/pull.rs @@ -2025,7 +2025,7 @@ pub struct BatchConfig { pub batch: usize, /// The optional number of nanoseconds that the server will store this next request for /// before forgetting about the pending batch size. - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(skip_serializing_if = "Option::is_none", with = "serde_nanos")] pub expires: Option, /// This optionally causes the server not to store this pending request at all, but when there are no /// messages to deliver will send a nil bytes message with a Status header of 404, this way you