@@ -107,7 +107,7 @@ impl InnerPersister {
107107 ) ;
108108 let cm_file_opt = self
109109 . api
110- . get_file ( cm_file_id)
110+ . get_file ( & cm_file_id)
111111 . await
112112 . context ( "Could not fetch channel manager from DB" ) ?;
113113
@@ -162,7 +162,7 @@ impl InnerPersister {
162162
163163 let cm_file_vec = self
164164 . api
165- . get_directory ( cm_dir)
165+ . get_directory ( & cm_dir)
166166 . await
167167 . context ( "Could not fetch channel monitors from DB" ) ?;
168168
@@ -209,7 +209,7 @@ impl InnerPersister {
209209 ) ;
210210 let scorer_file_opt = self
211211 . api
212- . get_file ( scorer_file_id)
212+ . get_file ( & scorer_file_id)
213213 . await
214214 . context ( "Could not fetch probabilistic scorer from DB" ) ?;
215215
@@ -244,7 +244,7 @@ impl InnerPersister {
244244 ) ;
245245 let ng_file_opt = self
246246 . api
247- . get_file ( ng_file_id)
247+ . get_file ( & ng_file_id)
248248 . await
249249 . context ( "Could not fetch network graph from DB" ) ?;
250250
@@ -273,7 +273,7 @@ impl InnerPersister {
273273
274274 let cp_file_vec = self
275275 . api
276- . get_directory ( cp_dir)
276+ . get_directory ( & cp_dir)
277277 . await
278278 . context ( "Could not fetch channel peers from DB" ) ?;
279279
@@ -309,7 +309,7 @@ impl InnerPersister {
309309 ) ;
310310
311311 self . api
312- . create_file ( cp_file)
312+ . create_file ( & cp_file)
313313 . await
314314 . map ( |_| ( ) )
315315 . map_err ( |e| e. into ( ) )
@@ -333,7 +333,7 @@ impl InnerPersister {
333333 ) ;
334334
335335 self . api
336- . upsert_file ( cm_file)
336+ . upsert_file ( & cm_file)
337337 . await
338338 . map ( |_| ( ) )
339339 . context ( "Could not persist channel manager" )
@@ -356,7 +356,7 @@ impl InnerPersister {
356356 ) ;
357357
358358 self . api
359- . upsert_file ( file)
359+ . upsert_file ( & file)
360360 . await
361361 . map ( |_| ( ) )
362362 . context ( "Could not persist network graph" )
@@ -384,7 +384,7 @@ impl InnerPersister {
384384 } ;
385385
386386 self . api
387- . upsert_file ( scorer_file)
387+ . upsert_file ( & scorer_file)
388388 . await
389389 . map ( |_| ( ) )
390390 . context ( "Could not persist scorer" )
@@ -415,7 +415,7 @@ impl Persist<SignerType> for InnerPersister {
415415
416416 // Run an async fn inside a sync fn inside a Tokio runtime
417417 Handle :: current ( )
418- . block_on ( async move { self . api . create_file ( cm_file) . await } )
418+ . block_on ( async move { self . api . create_file ( & cm_file) . await } )
419419 . map ( |_| ( ) )
420420 . map_err ( |e| {
421421 // TODO(max): Implement durability then make this err permanent
@@ -448,7 +448,7 @@ impl Persist<SignerType> for InnerPersister {
448448
449449 // Run an async fn inside a sync fn inside a Tokio runtime
450450 Handle :: current ( )
451- . block_on ( async move { self . api . upsert_file ( cm_file) . await } )
451+ . block_on ( async move { self . api . upsert_file ( & cm_file) . await } )
452452 . map ( |_| ( ) )
453453 . map_err ( |e| {
454454 // TODO(max): Implement durability then make this err permanent
0 commit comments