Skip to content

Commit 47593d3

Browse files
committed
update nats config
1 parent cbeee27 commit 47593d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ pub async fn setup_jetstream(nats_client: &async_nats::Client) -> Result<jetstre
99
let stream_config = stream::Config {
1010
name: "PYTH_PRICE_UPDATES".to_string(),
1111
subjects: vec!["pyth.price.updates".to_string()],
12-
max_age: Duration::from_secs(300),
1312
max_bytes: 1024 * 1024 * 4000,
1413
duplicate_window: Duration::from_secs(60),
15-
discard: stream::DiscardPolicy::New,
16-
max_messages_per_subject: 100,
14+
discard: stream::DiscardPolicy::Old,
1715
allow_direct: true,
1816
allow_rollup: true,
1917
..Default::default()

0 commit comments

Comments
 (0)