mirror of
https://github.com/veeso/termscp.git
synced 2026-04-06 02:01:34 -07:00
ConfigClient is an option no more; config client degraded mode
This commit is contained in:
@@ -67,12 +67,12 @@ impl ActivityManager {
|
||||
pub fn new(local_dir: &Path, interval: Duration) -> Result<ActivityManager, HostError> {
|
||||
// Prepare Context
|
||||
// Initialize configuration client
|
||||
let (config_client, error): (Option<ConfigClient>, Option<String>) =
|
||||
let (config_client, error): (ConfigClient, Option<String>) =
|
||||
match Self::init_config_client() {
|
||||
Ok(cli) => (Some(cli), None),
|
||||
Ok(cli) => (cli, None),
|
||||
Err(err) => {
|
||||
error!("Failed to initialize config client: {}", err);
|
||||
(None, Some(err))
|
||||
(ConfigClient::degraded(), Some(err))
|
||||
}
|
||||
};
|
||||
let theme_provider: ThemeProvider = Self::init_theme_provider();
|
||||
|
||||
Reference in New Issue
Block a user