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

Function get_client

chirpstack/src/integration/ifttt.rs:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17static CLIENT: OnceLock<Client> = OnceLock::new();
18
19fn get_client() -> Client {
20 CLIENT
21 .get_or_init(|| {
22 Client::builder()
23 .timeout(Duration::from_secs(5))
24 .build()
25 .unwrap()
26 })
27 .clone()
28}
29
30#[derive(Serialize, Deserialize)]
31struct Values {

Callers 1

postMethod · 0.70

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected