File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
mithril-test-lab/mithril-end-to-end/src/mithril Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ pub struct Configuration {
118
118
pub cardano_transactions_block_streamer_max_roll_forwards_per_poll : usize ,
119
119
120
120
/// Preloading refresh interval in seconds
121
- pub preloading_refresh_interval : u64 ,
121
+ pub preloading_refresh_interval_in_seconds : u64 ,
122
122
}
123
123
124
124
impl Configuration {
@@ -156,7 +156,7 @@ impl Configuration {
156
156
enable_transaction_pruning : false ,
157
157
transactions_import_block_chunk_size : BlockNumber ( 1000 ) ,
158
158
cardano_transactions_block_streamer_max_roll_forwards_per_poll : 1000 ,
159
- preloading_refresh_interval : 60 ,
159
+ preloading_refresh_interval_in_seconds : 60 ,
160
160
}
161
161
}
162
162
Original file line number Diff line number Diff line change @@ -83,8 +83,12 @@ pub struct Args {
83
83
84
84
/// Preloading refresh interval in seconds
85
85
// TODO: Replace the default value to 43200 (12 hours) once the Cardano transactions is activated on mainnet
86
- #[ clap( long, env = "PRELOADING_REFRESH_INTERVAL" , default_value_t = 7200 ) ]
87
- preloading_refresh_interval : u64 ,
86
+ #[ clap(
87
+ long,
88
+ env = "PRELOADING_REFRESH_INTERVAL_IN_SECONDS" ,
89
+ default_value_t = 7200
90
+ ) ]
91
+ preloading_refresh_interval_in_seconds : u64 ,
88
92
}
89
93
90
94
impl Args {
@@ -190,7 +194,7 @@ async fn main() -> StdResult<()> {
190
194
} ) ;
191
195
192
196
join_set. spawn ( async move {
193
- let refresh_interval = config. preloading_refresh_interval ;
197
+ let refresh_interval = config. preloading_refresh_interval_in_seconds ;
194
198
let mut interval = tokio:: time:: interval ( Duration :: from_secs ( refresh_interval) ) ;
195
199
loop {
196
200
interval. tick ( ) . await ;
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ impl Signer {
70
70
) ,
71
71
( "ERA_READER_ADAPTER_PARAMS" , & era_reader_adapter_params) ,
72
72
( "TRANSACTIONS_IMPORT_BLOCK_CHUNK_SIZE" , "150" ) ,
73
- ( "PRELOADING_REFRESH_INTERVAL " , "10" ) ,
73
+ ( "PRELOADING_REFRESH_INTERVAL_IN_SECONDS " , "10" ) ,
74
74
] ) ;
75
75
if signer_config. enable_certification {
76
76
env. insert (
You can’t perform that action at this time.
0 commit comments