From b76ed55a393fdb6f4c65033c9aaa20ce2b9fb59e Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 17 Feb 2025 01:20:47 +0100 Subject: [PATCH] Clarify comment --- gdn-app/src-tauri/src/ids.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdn-app/src-tauri/src/ids.rs b/gdn-app/src-tauri/src/ids.rs index ddd5f34..9519f30 100644 --- a/gdn-app/src-tauri/src/ids.rs +++ b/gdn-app/src-tauri/src/ids.rs @@ -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);