@@ -221,20 +221,22 @@ impl BitcoindChainSource {
221221 log_error ! ( self . logger, "Failed to synchronize chain listeners: {:?}" , e) ;
222222 if e. kind ( ) == BlockSourceErrorKind :: Transient {
223223 log_info ! (
224- self . logger,
225- "Transient error syncing chain listeners: {:?}. Retrying in {} seconds." ,
226- e,
227- backoff
228- ) ;
224+ self . logger,
225+ "Transient error syncing chain listeners: {:?}. Retrying in {} \
226+ seconds.",
227+ e,
228+ backoff
229+ ) ;
229230 tokio:: time:: sleep ( Duration :: from_secs ( backoff) ) . await ;
230231 backoff = std:: cmp:: min ( backoff * 2 , MAX_BACKOFF_SECS ) ;
231232 } else {
232233 log_error ! (
233- self . logger,
234- "Persistent error syncing chain listeners: {:?}. Retrying in {} seconds." ,
235- e,
236- MAX_BACKOFF_SECS
237- ) ;
234+ self . logger,
235+ "Persistent error syncing chain listeners: {:?}. Retrying in {} \
236+ seconds.",
237+ e,
238+ MAX_BACKOFF_SECS
239+ ) ;
238240 tokio:: time:: sleep ( Duration :: from_secs ( MAX_BACKOFF_SECS ) ) . await ;
239241 }
240242 } ,
@@ -415,7 +417,7 @@ impl BitcoindChainSource {
415417
416418 pub ( super ) async fn update_fee_rate_estimates ( & self ) -> Result < ( ) , Error > {
417419 macro_rules! get_fee_rate_update {
418- ( $estimation_fut: expr) => { {
420+ ( $estimation_fut: expr) => { {
419421 let update_res = tokio:: time:: timeout(
420422 Duration :: from_secs( FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS ) ,
421423 $estimation_fut,
@@ -475,10 +477,11 @@ impl BitcoindChainSource {
475477 // On regtest/signet we just fall back to the usual 1 sat/vb == 250
476478 // sat/kwu default.
477479 log_error ! (
478- self . logger,
479- "Failed to retrieve fee rate estimates: {}. Falling back to default of 1 sat/vb." ,
480- e,
481- ) ;
480+ self . logger,
481+ "Failed to retrieve fee rate estimates: {}. Falling back to default of 1 \
482+ sat/vb.",
483+ e,
484+ ) ;
482485 FeeRate :: from_sat_per_kwu ( 250 )
483486 } ,
484487 ( Err ( e) , _) => {
@@ -701,10 +704,10 @@ impl BitcoindClient {
701704 let num_blocks_json = serde_json:: json!( num_blocks) ;
702705 let estimation_mode_json = serde_json:: json!( estimation_mode) ;
703706 rpc_client
704- . call_method :: < FeeResponse > (
705- "estimatesmartfee" ,
706- & [ num_blocks_json , estimation_mode_json] ,
707- )
707+ . call_method :: < FeeResponse > ( "estimatesmartfee" , & [
708+ num_blocks_json ,
709+ estimation_mode_json,
710+ ] )
708711 . await
709712 . map ( |resp| resp. 0 )
710713 }
0 commit comments