From 745d5fc25854a594e232eb80c5beaff1fcb85d00 Mon Sep 17 00:00:00 2001 From: Pavel Strakhov Date: Fri, 6 Sep 2024 15:03:00 +0100 Subject: [PATCH] chore: change default unchanged_publish_threshold from 5s to 3s --- config/config.toml | 2 +- src/agent/services/exporter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.toml b/config/config.toml index cfe5f4c..ae92b87 100644 --- a/config/config.toml +++ b/config/config.toml @@ -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 diff --git a/src/agent/services/exporter.rs b/src/agent/services/exporter.rs index 3548101..b65d580 100644 --- a/src/agent/services/exporter.rs +++ b/src/agent/services/exporter.rs @@ -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(),