From 0f300cfb2034f4c07e628ab27248c8fb07b3e151 Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Sat, 29 Jul 2023 16:06:49 +0000 Subject: [PATCH] Update src/types/utils/snowflake.rs Co-authored-by: SpecificProtagonist --- src/types/utils/snowflake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/utils/snowflake.rs b/src/types/utils/snowflake.rs index b34701a..9796084 100644 --- a/src/types/utils/snowflake.rs +++ b/src/types/utils/snowflake.rs @@ -18,7 +18,7 @@ const EPOCH: i64 = 1420070400000; pub struct Snowflake(u64); impl Snowflake { - /// Generates a snowflake for the current epoch. + /// Generates a snowflake for the current timestamp, with worker id 0 and process id 1. pub fn generate() -> Self { const WORKER_ID: u64 = 0; const PROCESS_ID: u64 = 1;