Skip to content

Commit 71d594e

Browse files
committed
set stream max_bytes to 4 GB
1 parent 3c66163 commit 71d594e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ 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_bytes: 1024 * 1024 * 1000,
12+
max_bytes: 1024 * 1024 * 4000,
1313
duplicate_window: Duration::from_secs(60),
1414
discard: stream::DiscardPolicy::Old,
1515
allow_direct: true,

0 commit comments

Comments
 (0)