File tree Expand file tree Collapse file tree
apps/desktop/src-tauri/src
crates/rendering/src/decoder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ impl FinalizingRecordings {
124124
125125 pub fn finish_finalizing ( & self , path : & Path ) {
126126 let mut recordings = self . recordings . lock ( ) . unwrap ( ) ;
127- if let Some ( ( tx, _) ) = recordings. remove ( path) {
128- if tx. send ( true ) . is_err ( ) {
129- debug ! ( "Finalizing receiver dropped for path: {:?}" , path ) ;
130- }
127+ if let Some ( ( tx, _) ) = recordings. remove ( path)
128+ && tx. send ( true ) . is_err ( )
129+ {
130+ debug ! ( "Finalizing receiver dropped for path: {:?}" , path ) ;
131131 }
132132 }
133133
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl DecoderPoolManager {
128128 }
129129
130130 pub fn should_rebalance ( & self ) -> bool {
131- self . total_accesses > 0 && self . total_accesses % 100 == 0
131+ self . total_accesses > 0 && self . total_accesses . is_multiple_of ( 100 )
132132 }
133133
134134 pub fn get_rebalance_positions ( & self ) -> Vec < f32 > {
You can’t perform that action at this time.
0 commit comments