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

Function get_relay_gateway

chirpstack/src/storage/gateway.rs:481–488  ·  view source on GitHub ↗
(tenant_id: Uuid, relay_id: RelayId)

Source from the content-addressed store, hash-verified

479}
480
481pub async fn get_relay_gateway(tenant_id: Uuid, relay_id: RelayId) -> Result<RelayGateway, Error> {
482 let relay = relay_gateway::dsl::relay_gateway
483 .find((fields::Uuid::from(tenant_id), &relay_id))
484 .first(&mut get_async_db_conn().await?)
485 .await
486 .map_err(|e| Error::from_diesel(e, relay_id.to_string()))?;
487 Ok(relay)
488}
489
490pub async fn update_relay_gateway(relay: RelayGateway) -> Result<RelayGateway, Error> {
491 let relay: RelayGateway =

Callers 3

test_relay_gatewayFunction · 0.85
get_relay_gatewayMethod · 0.85
_handle_heartbeatMethod · 0.85

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by 1

test_relay_gatewayFunction · 0.68