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
+2
View File
@@ -148,6 +148,8 @@ where
serializer.serialize_str(&u8_16_to_hex(bytes))
}
/// Deserializes a timestamp from either a Unix timestamp (seconds) or a UTC datetime string
/// in the format "YYYY-MM-DD HH:MM:SS". Note: Datetime strings are interpreted as UTC.
pub fn deserialize_timestamp<'de, D>(deserializer: D) -> Result<Option<i64>, D::Error>
where
D: serde::Deserializer<'de>,