File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -593,7 +593,6 @@ pub enum FrameType {
593593 /// Ack: `{"ok":bool,"err":".."}`.
594594 NotifSend = 240 ,
595595 NotifSendAck = 241 ,
596-
597596 // Frame numbers 184-187, 192-195, 200-239, and 242-245 were allocated
598597 // during v4 scaffolding for features that were never finished (they
599598 // returned "not implemented") or were SKIP in FEATURE-GAP-ANALYSIS.md
Original file line number Diff line number Diff line change @@ -4411,16 +4411,12 @@ async fn fan_curve_get_handler(
44114411 Query ( q) : Query < AddrQuery > ,
44124412) -> impl IntoResponse {
44134413 let addr = mgmt_addr_or_default ( q. addr , & state. default_ps5_addr ) ;
4414- let r = tokio:: task:: spawn_blocking ( move || {
4415- ps5upload_core:: fan_curve:: fan_curve_get ( & addr)
4416- } )
4417- . await
4418- . map_err ( anyhow:: Error :: from)
4419- . and_then ( |r| r) ;
4414+ let r = tokio:: task:: spawn_blocking ( move || ps5upload_core:: fan_curve:: fan_curve_get ( & addr) )
4415+ . await
4416+ . map_err ( anyhow:: Error :: from)
4417+ . and_then ( |r| r) ;
44204418 match r {
4421- Ok ( points) => {
4422- ( StatusCode :: OK , Json ( serde_json:: json!( { "points" : points} ) ) ) . into_response ( )
4423- }
4419+ Ok ( points) => ( StatusCode :: OK , Json ( serde_json:: json!( { "points" : points} ) ) ) . into_response ( ) ,
44244420 Err ( e) => json_err ( StatusCode :: BAD_GATEWAY , format ! ( "{e:#}" ) ) . into_response ( ) ,
44254421 }
44264422}
You can’t perform that action at this time.
0 commit comments