Skip to content

Commit

Permalink
chore: change default unchanged_publish_threshold from 5s to 3s
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche committed Sep 6, 2024
1 parent d110d88 commit 745d5fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ key_store.mapping_key = "RelevantOracleMappingAddress"
# Wait at least this long before publishing an unchanged price
# state; unchanged price state means only timestamp has changed
# with other state identical to last published state.
# exporter.unchanged_publish_threshold = "5s"
# exporter.unchanged_publish_threshold = "3s"

# Maximum size of a batch
# exporter.max_batch_size = 12
Expand Down
2 changes: 1 addition & 1 deletion src/agent/services/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl Default for Config {
refresh_network_state_interval_duration: Duration::from_millis(200),
publish_interval_duration: Duration::from_secs(1),
staleness_threshold: Duration::from_secs(5),
unchanged_publish_threshold: Duration::from_secs(5),
unchanged_publish_threshold: Duration::from_secs(3),
max_batch_size: 12,
inflight_transactions_channel_capacity: 10000,
transaction_monitor: Default::default(),
Expand Down

0 comments on commit 745d5fc

Please sign in to comment.