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

Function set

chirpstack/src/backend/roaming.rs:68–71  ·  view source on GitHub ↗
(net_id: &NetID, c: Client)

Source from the content-addressed store, hash-verified

66}
67
68pub async fn set(net_id: &NetID, c: Client) {
69 let mut clients_w = CLIENTS.write().await;
70 clients_w.insert(*net_id, Arc::new(c));
71}
72
73pub async fn get(net_id: &NetID) -> Result<Arc<Client>> {
74 let mut clients_w = CLIENTS.write().await;

Callers 15

setupFunction · 0.70
test_is_roaming_dev_addrFunction · 0.70
prepareFunction · 0.50
test_fnsFunction · 0.50
test_snsFunction · 0.50
run_testFunction · 0.50
test_fns_uplinkFunction · 0.50
test_sns_uplinkFunction · 0.50
test_sns_dev_not_foundFunction · 0.50
test_uplinkFunction · 0.50

Calls 1

insertMethod · 0.80

Tested by 15

test_is_roaming_dev_addrFunction · 0.56
prepareFunction · 0.40
test_fnsFunction · 0.40
test_snsFunction · 0.40
run_testFunction · 0.40
test_fns_uplinkFunction · 0.40
test_sns_uplinkFunction · 0.40
test_sns_dev_not_foundFunction · 0.40
test_uplinkFunction · 0.40
run_testFunction · 0.40