File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -779,14 +779,13 @@ pub(crate) async fn sync_task(
779779 let logger_tx = logger_tx. clone ( ) ;
780780
781781 fn send_trim ( site_path : String , dirtylog_cmd_tx : UnboundedSender < DirtyLogCommand > ) {
782- dirtylog_cmd_tx. unbounded_send ( DirtyLogCommand :: Trim { site : site_path } )
783- . unwrap_or_else ( |e| {
784- let err_msg = e. to_string ( ) ;
785- let DirtyLogCommand :: Trim { site} = e. into_inner ( ) else {
786- panic ! ( "Logic error" )
787- } ;
788- log:: error!( "Cannot send dirtylog Trim command for site {site}: {err_msg}" )
789- } ) ;
782+ if let Err ( e) = dirtylog_cmd_tx. unbounded_send ( DirtyLogCommand :: Trim { site : site_path } ) {
783+ let err_msg = e. to_string ( ) ;
784+ let DirtyLogCommand :: Trim { site} = e. into_inner ( ) else {
785+ panic ! ( "Logic error" )
786+ } ;
787+ log:: error!( "Cannot send dirtylog Trim command for site {site}: {err_msg}" )
788+ }
790789 }
791790
792791 match sub_hp {
You can’t perform that action at this time.
0 commit comments