Refactored connection handling to avoid race conditions

This commit is contained in:
euzu
2025-11-26 14:13:31 +01:00
parent 6c021fbe2b
commit 21006dbf0f
8 changed files with 36 additions and 17 deletions
+4 -1
View File
@@ -88,7 +88,10 @@ fn csv_assign_config_input_column(config_input: &mut ConfigInputAliasDto, header
config_input.password = Some(value.to_string());
}
FIELD_EXP_DATE => {
config_input.exp_date = parse_timestamp(value).ok().flatten();
config_input.exp_date = parse_timestamp(value).unwrap_or_else(|e| {
error!("Failed to parse exp_date '{value}': {e}");
None
});
}
_ => {}
}