[style](trx-client): apply rustfmt formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -355,10 +355,5 @@ pub(crate) async fn vchan_js(req: HttpRequest) -> impl Responder {
|
|||||||
#[get("/bandplan.json")]
|
#[get("/bandplan.json")]
|
||||||
pub(crate) async fn bandplan_json(req: HttpRequest) -> impl Responder {
|
pub(crate) async fn bandplan_json(req: HttpRequest) -> impl Responder {
|
||||||
let c = gz_bandplan_json();
|
let c = gz_bandplan_json();
|
||||||
static_asset_response(
|
static_asset_response(&req, "application/json; charset=utf-8", &c.gz, &c.etag)
|
||||||
&req,
|
|
||||||
"application/json; charset=utf-8",
|
|
||||||
&c.gz,
|
|
||||||
&c.etag,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -727,11 +727,7 @@ pub fn spawn_scheduler_task(
|
|||||||
// above its minimum elevation, we retune to the
|
// above its minimum elevation, we retune to the
|
||||||
// satellite's bookmark and enable its decoders (e.g.
|
// satellite's bookmark and enable its decoders (e.g.
|
||||||
// LRPT).
|
// LRPT).
|
||||||
if let Some(sat_target) = find_active_satellite_target(
|
if let Some(sat_target) = find_active_satellite_target(&config, &context, now_ms) {
|
||||||
&config,
|
|
||||||
&context,
|
|
||||||
now_ms,
|
|
||||||
) {
|
|
||||||
let target = AppliedTarget {
|
let target = AppliedTarget {
|
||||||
bookmark_id: sat_target.bookmark_id.clone(),
|
bookmark_id: sat_target.bookmark_id.clone(),
|
||||||
center_hz: sat_target.center_hz,
|
center_hz: sat_target.center_hz,
|
||||||
@@ -743,8 +739,7 @@ pub fn spawn_scheduler_task(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let Some(bm) =
|
let Some(bm) = bookmarks.get_for_rig(&config.remote, &sat_target.bookmark_id)
|
||||||
bookmarks.get_for_rig(&config.remote, &sat_target.bookmark_id)
|
|
||||||
else {
|
else {
|
||||||
warn!(
|
warn!(
|
||||||
"scheduler: satellite bookmark '{}' not found for remote '{}'",
|
"scheduler: satellite bookmark '{}' not found for remote '{}'",
|
||||||
@@ -790,9 +785,7 @@ pub fn spawn_scheduler_task(
|
|||||||
{
|
{
|
||||||
last_applied.remove(&config.remote);
|
last_applied.remove(&config.remote);
|
||||||
// Clear the active_satellite from status.
|
// Clear the active_satellite from status.
|
||||||
if let Ok(mut map) =
|
if let Ok(mut map) = status_map.write() {
|
||||||
status_map.write()
|
|
||||||
{
|
|
||||||
if let Some(st) = map.get_mut(&config.remote) {
|
if let Some(st) = map.get_mut(&config.remote) {
|
||||||
st.active_satellite = None;
|
st.active_satellite = None;
|
||||||
}
|
}
|
||||||
@@ -940,9 +933,7 @@ fn find_active_satellite_target(
|
|||||||
// Check for active pass or imminent pass within pretune window.
|
// Check for active pass or imminent pass within pretune window.
|
||||||
let pass = active_passes.get(&entry.norad_id).copied().or_else(|| {
|
let pass = active_passes.get(&entry.norad_id).copied().or_else(|| {
|
||||||
passes.passes.iter().find(|p| {
|
passes.passes.iter().find(|p| {
|
||||||
p.norad_id == entry.norad_id
|
p.norad_id == entry.norad_id && p.aos_ms > now_ms && p.aos_ms <= now_ms + pretune_ms
|
||||||
&& p.aos_ms > now_ms
|
|
||||||
&& p.aos_ms <= now_ms + pretune_ms
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user