File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ use std::{
3535 num:: ParseIntError ,
3636 ops:: RangeInclusive ,
3737 path:: { Path , PathBuf } ,
38+ str:: FromStr ,
3839 sync:: {
3940 Arc ,
4041 atomic:: { AtomicU64 , Ordering } ,
4142 } ,
42- str:: FromStr ,
4343} ;
4444use tokio:: {
4545 io:: { AsyncRead , AsyncWriteExt } ,
@@ -51,7 +51,7 @@ use tracing_futures::Instrument as _;
5151use walkdir:: WalkDir ;
5252
5353const ZSTD_EOF_BYTES : [ u8 ; 3 ] = [ 0x01 , 0x00 , 0x00 ] ;
54- static ARCHIVE_INDEX_FILE_EXTENSION : & str = "index" ;
54+ const ARCHIVE_INDEX_FILE_EXTENSION : & str = "index" ;
5555
5656type FileRange = RangeInclusive < u64 > ;
5757
@@ -424,7 +424,7 @@ impl AsyncStorage {
424424 drop ( _read_guard) ;
425425 let _write_guard = rwlock. write ( ) . await ;
426426
427- // check existance again in case of Race Condition (TOCTOU)
427+ // check existence again in case of Race Condition (TOCTOU)
428428 if !tokio:: fs:: try_exists ( & local_index_path) . await ? {
429429 // remote/folder/and/x.zip.index
430430 let remote_index_path = format ! ( "{archive_path}.{ARCHIVE_INDEX_FILE_EXTENSION}" ) ;
You can’t perform that action at this time.
0 commit comments