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

Function delete_queue_item

chirpstack/src/storage/multicast.rs:622–633  ·  view source on GitHub ↗
(id: &Uuid)

Source from the content-addressed store, hash-verified

620}
621
622pub async fn delete_queue_item(id: &Uuid) -> Result<(), Error> {
623 let ra = diesel::delete(
624 multicast_group_queue_item::dsl::multicast_group_queue_item.find(&fields::Uuid::from(id)),
625 )
626 .execute(&mut get_async_db_conn().await?)
627 .await?;
628 if ra == 0 {
629 return Err(Error::NotFound(id.to_string()));
630 }
631 info!(id = %id, "Multicast-group queue item deleted");
632 Ok(())
633}
634
635pub async fn flush_queue(multicast_group_id: &Uuid) -> Result<(), Error> {
636 let _ = diesel::delete(

Callers 4

validate_expirationMethod · 0.85
validate_payload_sizeMethod · 0.85
test_queueFunction · 0.85

Calls 3

to_stringMethod · 0.80
deleteFunction · 0.70
get_async_db_connFunction · 0.70

Tested by 1

test_queueFunction · 0.68