Fix: Remove invalid DriveConfig::from_vault() call
- DriveConfig::default() already loads from Vault - No need for separate from_vault() method - CI should compile now
This commit is contained in:
parent
85d93fd88b
commit
6211e51d28
1 changed files with 2 additions and 4 deletions
|
|
@ -84,8 +84,7 @@ impl Default for AppConfig {
|
|||
.unwrap_or_else(|_| "postgresql://postgres:postgres@localhost/botserver".to_string()),
|
||||
max_connections: 10,
|
||||
},
|
||||
drive: DriveConfig::from_vault()
|
||||
.unwrap_or_else(|_| DriveConfig::default()),
|
||||
drive: DriveConfig::default(),
|
||||
email: EmailConfig::default(),
|
||||
site_path: std::env::var("SITE_PATH")
|
||||
.unwrap_or_else(|_| "/opt/gbo/data".to_string()),
|
||||
|
|
@ -124,8 +123,7 @@ pub fn from_env() -> Result<Self, Box<dyn std::error::Error>> {
|
|||
.unwrap_or_else(|_| "postgresql://postgres:postgres@localhost/botserver".to_string()),
|
||||
max_connections: 10,
|
||||
},
|
||||
drive: DriveConfig::from_vault()
|
||||
.unwrap_or_else(|_| DriveConfig::default()),
|
||||
drive: DriveConfig::default(),
|
||||
email: EmailConfig::default(),
|
||||
site_path: std::env::var("SITE_PATH")
|
||||
.unwrap_or_else(|_| "/opt/gbo/data".to_string()),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue