mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(app-proxy): separate readiness from liveness (#2322)
This commit is contained in:
1 parent
53a9fdc4b6
commit
a93f9dd0af
9 files changed
+295
-26
No files matched your search
@@ -4,7 +4,7 @@ use crate::config::AppProxyConfig;
|
||||
use crate::discovery_cache::DiscoveryCache;
|
||||
use crate::invite_meta::InviteMetaResolver;
|
||||
use fluxer_common::geoip::GeoipResolver;
|
||||
use std::sync::Arc;
|
||||
use std::sync::{Arc, OnceLock};
|
||||
use std::time::Duration;
|
||||
|
||||
#[derive(Clone)]
|
||||
@@ -13,7 +13,7 @@ pub struct AppState {
|
||||
pub http_client: reqwest::Client,
|
||||
pub discovery_cache: Arc<DiscoveryCache>,
|
||||
pub geoip: Arc<GeoipResolver>,
|
||||
pub invite_meta: Option<Arc<InviteMetaResolver>>,
|
||||
pub invite_meta: Arc<OnceLock<InviteMetaResolver>>,
|
||||
pub index_html: Option<Arc<str>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user