File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ impl FileStore {
207207 value : Value ,
208208 expiry : Timeout ,
209209 file : & mut tokio:: fs:: File ,
210- file_path : & std :: path :: PathBuf ,
210+ file_path : & Path ,
211211 ) -> CacheStoreResult < ( ) > {
212212 let result = async {
213213 let timeout = expiry. canonicalize ( ) ;
@@ -246,7 +246,7 @@ impl FileStore {
246246 async fn check_expiry (
247247 & self ,
248248 file : & mut tokio:: fs:: File ,
249- file_path : & std :: path :: PathBuf ,
249+ file_path : & Path ,
250250 ) -> CacheStoreResult < bool > {
251251 let mut header: [ u8 ; EXPIRY_HEADER_OFFSET ] = [ 0 ; EXPIRY_HEADER_OFFSET ] ;
252252
@@ -285,7 +285,7 @@ impl FileStore {
285285 async fn deserialize_data (
286286 & self ,
287287 file : & mut tokio:: fs:: File ,
288- file_path : & std :: path :: PathBuf ,
288+ file_path : & Path ,
289289 ) -> CacheStoreResult < Option < Value > > {
290290 if !self . check_expiry ( file, file_path) . await ? {
291291 return Ok ( None ) ;
You can’t perform that action at this time.
0 commit comments