Fix: Remove invalid DriveConfig::from_vault() call
Some checks are pending
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Successful in 6m4s

- DriveConfig::default() already loads from Vault
- No need for separate from_vault() method
- CI should compile now
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-24 10:51:25 -03:00
parent 85d93fd88b
commit 6211e51d28

View file

@ -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()),