fix: tests and config.rs and backup.rs args

This commit is contained in:
Charles GTE
2026-06-20 14:36:09 +02:00
parent 273475fa3b
commit 1fece577cc
11 changed files with 19 additions and 2 deletions
+8 -1
View File
@@ -216,6 +216,13 @@ impl ConfigService {
_ => optional(&db.path),
};
let max_packet_size = match db.db_type {
DbType::Mysql | DbType::Mariadb => {
db.max_packet_size.unwrap_or_else(|| "512M".to_string())
}
_ => String::new(),
};
databases.push(DatabaseConfig {
name: db.name,
database: database_name,
@@ -226,7 +233,7 @@ impl ConfigService {
port,
generated_id: db.generated_id,
path: path_val,
max_packet_size: db.max_packet_size.unwrap_or_else(|| "512M".to_string()),
max_packet_size,
});
}