mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-13 19:32:36 +02:00
Refactored connection handling to avoid race conditions
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user