fix(local-online-build): fixed build with default features

This commit is contained in:
zonyitoo
2024-06-12 02:14:40 +08:00
parent 87c1557fda
commit 27f35076d1
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -2380,6 +2380,7 @@ impl Config {
nconfig.acl = Some(acl);
}
#[cfg(feature = "local-online-config")]
if let Some(online_config) = config.online_config {
nconfig.online_config = Some(OnlineConfig {
config_url: online_config.config_url,
@@ -3126,6 +3127,7 @@ impl fmt::Display for Config {
}
// OnlineConfig
#[cfg(feature = "local-online-config")]
if let Some(ref online_config) = self.online_config {
jconf.online_config = Some(SSOnlineConfig {
config_url: online_config.config_url.clone(),
@@ -11,12 +11,13 @@ use std::{
time::{Duration, Instant},
};
use hyper::rt::{Sleep, Timer};
use hyper::{
body::{self, Body},
client::conn::{http1, http2},
http::uri::Scheme,
Request, Response,
rt::{Sleep, Timer},
Request,
Response,
};
use log::{error, trace};
use lru_time_cache::LruCache;