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

Function get_log_event

chirpstack/src/integration/mock.rs:147–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147pub async fn get_log_event() -> Option<integration::LogEvent> {
148 if LOG_EVENTS.read().await.is_empty() {
149 return None;
150 }
151
152 LOG_EVENTS
153 .write()
154 .await
155 .drain(0..1)
156 .collect::<Vec<integration::LogEvent>>()
157 .first()
158 .cloned()
159}
160
161pub async fn get_join_events() -> Vec<integration::JoinEvent> {
162 JOIN_EVENTS.write().await.drain(..).collect()

Callers 1

Calls

no outgoing calls

Tested by 1