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

Function get_client

chirpstack/src/integration/blynk.rs:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

post_eventMethod · 0.70

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected