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

Function get_client

chirpstack/src/integration/thingsboard.rs:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16static CLIENT: OnceLock<Client> = OnceLock::new();
17
18fn get_client() -> Client {
19 CLIENT
20 .get_or_init(|| {
21 Client::builder()
22 .timeout(Duration::from_secs(5))
23 .build()
24 .unwrap()
25 })
26 .clone()
27}
28
29pub struct Integration {
30 server: String,

Callers 2

send_attributesMethod · 0.70
send_telemetryMethod · 0.70

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected