Clarify comment

This commit is contained in:
Joscha 2025-02-17 01:20:47 +01:00
parent e4c21fa26d
commit b76ed55a39

View file

@ -6,7 +6,8 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
///
/// The id consists of 8 bytes. The first 5 bytes are an epoch timestamp in
/// seconds, while the remaining 3 bytes are a random number, meant to avoid
/// collisions when two ids are created at the same time on different devices.
/// collisions when two ids are created during the same second, possibly even on
/// different devices.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
struct TimestampId(u64);