Skip to content

Commit

Permalink
fix(source/nats): add missing default attribute for vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Aug 27, 2024
1 parent e3a9d37 commit 6d6a6a1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/connector/src/source/nats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ pub struct NatsPropertiesConsumer {
#[serde(rename = "consumer.filter_subject")]
pub filter_subject: Option<String>,

#[serde(rename = "consumer.filter_subjects")]
#[serde(deserialize_with = "deserialize_optional_string_seq_from_string")]
#[serde(
rename = "consumer.filter_subjects",
default,
deserialize_with = "deserialize_optional_string_seq_from_string"
)]
pub filter_subjects: Option<Vec<String>>,

#[serde(rename = "consumer.replay_policy")]
Expand Down Expand Up @@ -178,8 +181,11 @@ pub struct NatsPropertiesConsumer {
#[serde_as(as = "Option<DisplayFromStr>")]
pub memory_storage: Option<bool>,

#[serde(rename = "consumer.backoff.sec")]
#[serde(deserialize_with = "deserialize_optional_u64_seq_from_string")]
#[serde(
rename = "consumer.backoff.sec",
default,
deserialize_with = "deserialize_optional_u64_seq_from_string"
)]
pub backoff: Option<Vec<u64>>,
}

Expand Down

0 comments on commit 6d6a6a1

Please sign in to comment.