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

Function delete

chirpstack/src/storage/passive_roaming.rs:107–117  ·  view source on GitHub ↗
(id: Uuid)

Source from the content-addressed store, hash-verified

105}
106
107pub async fn delete(id: Uuid) -> Result<()> {
108 let key = redis_key(format!("pr:sess:{{{}}}", id));
109
110 () = redis::cmd("DEL")
111 .arg(&key)
112 .query_async(&mut get_async_redis_conn().await?)
113 .await?;
114
115 info!(id = %id, "Passive-roaming device-session deleted");
116 Ok(())
117}
118
119pub async fn get_for_phy_payload(
120 phy: &lrwn::PhyPayload,

Callers

nothing calls this directly

Calls 2

redis_keyFunction · 0.85
get_async_redis_connFunction · 0.85

Tested by

no test coverage detected