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"
87
87
# Wait at least this long before publishing an unchanged price
88
88
# state; unchanged price state means only timestamp has changed
89
89
# with other state identical to last published state.
90
- # exporter.unchanged_publish_threshold = "5s "
90
+ # exporter.unchanged_publish_threshold = "3s "
91
91
92
92
# Maximum size of a batch
93
93
# exporter.max_batch_size = 12
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ pub struct Config {
46
46
/// Wait at least this long before publishing an unchanged price
47
47
/// state; unchanged price state means only timestamp has changed
48
48
/// with other state identical to last published state.
49
+ #[ serde( with = "humantime_serde" ) ]
49
50
pub unchanged_publish_threshold : Duration ,
50
51
/// Maximum size of a batch
51
52
pub max_batch_size : usize ,
@@ -80,7 +81,7 @@ impl Default for Config {
80
81
refresh_network_state_interval_duration : Duration :: from_millis ( 200 ) ,
81
82
publish_interval_duration : Duration :: from_secs ( 1 ) ,
82
83
staleness_threshold : Duration :: from_secs ( 5 ) ,
83
- unchanged_publish_threshold : Duration :: from_secs ( 5 ) ,
84
+ unchanged_publish_threshold : Duration :: from_secs ( 3 ) ,
84
85
max_batch_size : 12 ,
85
86
inflight_transactions_channel_capacity : 10000 ,
86
87
transaction_monitor : Default :: default ( ) ,
You can’t perform that action at this time.
0 commit comments