File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/tool/subcommands/api_cmd Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -212,16 +212,14 @@ mod tests {
212212 . trim ( )
213213 . split ( "\n " )
214214 . filter_map ( |n| {
215- let base_url = format ! (
216- "https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/rpc_test/{n}"
217- ) ;
218- let mut url = Url :: parse ( & base_url) . ok ( ) ?;
219- // Append a timestamp to the URL as a `cachebust` query parameter
220- // to prevent the CDN from serving a potentially stale cached version
221- // of the file, in case it's been recently re-uploaded with changes.
222- url. query_pairs_mut ( )
223- . append_pair ( "cachebust" , & Utc :: now ( ) . timestamp ( ) . to_string ( ) ) ;
224- Some ( ( n, url) )
215+ Url :: parse (
216+ format ! (
217+ "https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/rpc_test/{n}"
218+ )
219+ . as_str ( ) ,
220+ )
221+ . ok ( )
222+ . map ( |url| ( n, url) )
225223 } )
226224 . collect_vec ( ) ;
227225 let project_dir = ProjectDirs :: from ( "com" , "ChainSafe" , "Forest" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments