File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11use std:: {
2- cell :: LazyCell , fs:: { self , File } , io:: Read
2+ fs:: { self , File } , io:: Read , sync :: LazyLock
33} ;
44
55use drop_consts:: DATA_ROOT_DIR ;
@@ -17,10 +17,10 @@ impl DropHealthcheck {
1717 & self . app_name
1818 }
1919}
20- const DROP_CERT_BUNDLE : LazyCell < Vec < Certificate > > = LazyCell :: new ( fetch_certificates) ;
21- pub const DROP_CLIENT_SYNC : LazyCell < reqwest:: blocking:: Client > = LazyCell :: new ( get_client_sync) ;
22- pub const DROP_CLIENT_ASYNC : LazyCell < reqwest:: Client > = LazyCell :: new ( get_client_async) ;
23- pub const DROP_CLIENT_WS_CLIENT : LazyCell < reqwest:: Client > = LazyCell :: new ( get_client_ws) ;
20+ static DROP_CERT_BUNDLE : LazyLock < Vec < Certificate > > = LazyLock :: new ( fetch_certificates) ;
21+ pub static DROP_CLIENT_SYNC : LazyLock < reqwest:: blocking:: Client > = LazyLock :: new ( get_client_sync) ;
22+ pub static DROP_CLIENT_ASYNC : LazyLock < reqwest:: Client > = LazyLock :: new ( get_client_async) ;
23+ pub static DROP_CLIENT_WS_CLIENT : LazyLock < reqwest:: Client > = LazyLock :: new ( get_client_ws) ;
2424
2525fn fetch_certificates ( ) -> Vec < Certificate > {
2626 let certificate_dir = DATA_ROOT_DIR . join ( "certificates" ) ;
You can’t perform that action at this time.
0 commit comments