make globals more simple

This commit is contained in:
Jun Kurihara 2023-07-10 18:04:15 +09:00
commit fab28e8609
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
6 changed files with 261 additions and 228 deletions

View file

@ -10,7 +10,7 @@ use tokio::time::Duration;
/// But note that in Globals, we do not have Mutex and RwLock. It is indeed, the context shared among async tasks.
pub struct Globals {
/// Configuration parameters for proxy transport and request handlers
pub proxy_config: ProxyConfig,
pub proxy_config: ProxyConfig, // TODO: proxy configはarcに包んでこいつだけ使いまわせばいいように変えていく。backendsも
/// Shared context - Backend application objects to which http request handler forward incoming requests
pub backends: Backends,