File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1276,7 +1276,7 @@ impl SpircTask {
12761276 } ;
12771277
12781278 let position_delta =
1279- ( state. position_as_of_timestamp as i64 - expected_position as i64 ) . abs ( ) ;
1279+ ( state. position_as_of_timestamp - expected_position) . abs ( ) ;
12801280 if position_delta > 5000 {
12811281 PlayerUpdateReason :: SeekChanged
12821282 } else {
@@ -1377,13 +1377,13 @@ impl SpircTask {
13771377 // Sync device state to cluster_state_sender (after emitting events)
13781378 let devices: HashMap < String , DeviceInfo > = cluster
13791379 . device
1380- . iter ( )
1381- . map ( |( _ , device) | {
1380+ . values ( )
1381+ . map ( |device| {
13821382 let info = DeviceInfo {
13831383 device_id : device. device_id . clone ( ) ,
13841384 device_alias : device. name . clone ( ) ,
13851385 device_type : format ! ( "{:?}" , device. device_type) ,
1386- volume : device. volume as u32 ,
1386+ volume : device. volume ,
13871387 is_active : device. device_id == cluster. active_device_id ,
13881388 } ;
13891389 ( info. device_id . clone ( ) , info)
You can’t perform that action at this time.
0 commit comments