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

Function get

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

Source from the content-addressed store, hash-verified

149}
150
151pub async fn get(id: &Uuid) -> Result<MulticastGroup, Error> {
152 multicast_group::dsl::multicast_group
153 .find(&fields::Uuid::from(id))
154 .first(&mut get_async_db_conn().await?)
155 .await
156 .map_err(|e| Error::from_diesel(e, id.to_string()))
157}
158
159pub async fn update(mg: MulticastGroup) -> Result<MulticastGroup, Error> {
160 mg.validate()?;

Callers 3

enqueueFunction · 0.70
test_multicast_groupFunction · 0.70

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by 1

test_multicast_groupFunction · 0.56