MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / _handle

Method _handle

chirpstack/src/uplink/stats.rs:58–71  ·  view source on GitHub ↗
(gateway_id: EUI64, s: gw::GatewayStats)

Source from the content-addressed store, hash-verified

56 }
57
58 async fn _handle(gateway_id: EUI64, s: gw::GatewayStats) -> Result<()> {
59 let mut ctx = Stats {
60 gateway_id,
61 stats: s,
62 gateway: None,
63 };
64
65 ctx.update_gateway_state().await?;
66 ctx.save_stats().await?;
67 ctx.save_duty_cycle_stats().await?;
68 ctx.update_gateway_configuration().await?;
69
70 Ok(())
71 }
72
73 async fn update_gateway_state(&mut self) -> Result<()> {
74 trace!("Update gateway state");

Callers

nothing calls this directly

Calls 4

update_gateway_stateMethod · 0.80
save_statsMethod · 0.80
save_duty_cycle_statsMethod · 0.80

Tested by

no test coverage detected