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

Function get_client

chirpstack/src/integration/http.rs:18–28  ·  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 .use_rustls_tls()
24 .build()
25 .unwrap()
26 })
27 .clone()
28}
29
30pub struct Integration {
31 endpoints: Vec<String>,

Callers 1

post_eventMethod · 0.70

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected