File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ key_store.mapping_key = "RelevantOracleMappingAddress"
8787# Wait at least this long before publishing an unchanged price
8888# state; unchanged price state means only timestamp has changed
8989# with other state identical to last published state.
90- # exporter.unchanged_publish_threshold = "5s "
90+ # exporter.unchanged_publish_threshold = "3s "
9191
9292# Maximum size of a batch
9393# exporter.max_batch_size = 12
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ pub struct Config {
4646 /// Wait at least this long before publishing an unchanged price
4747 /// state; unchanged price state means only timestamp has changed
4848 /// with other state identical to last published state.
49+ #[ serde( with = "humantime_serde" ) ]
4950 pub unchanged_publish_threshold : Duration ,
5051 /// Maximum size of a batch
5152 pub max_batch_size : usize ,
@@ -80,7 +81,7 @@ impl Default for Config {
8081 refresh_network_state_interval_duration : Duration :: from_millis ( 200 ) ,
8182 publish_interval_duration : Duration :: from_secs ( 1 ) ,
8283 staleness_threshold : Duration :: from_secs ( 5 ) ,
83- unchanged_publish_threshold : Duration :: from_secs ( 5 ) ,
84+ unchanged_publish_threshold : Duration :: from_secs ( 3 ) ,
8485 max_batch_size : 12 ,
8586 inflight_transactions_channel_capacity : 10000 ,
8687 transaction_monitor : Default :: default ( ) ,
You can’t perform that action at this time.
0 commit comments