From d204b6c3b72a0f9eb249f6350b3a588dd30e705f Mon Sep 17 00:00:00 2001 From: Peng Gao Date: Sat, 1 Apr 2017 10:54:28 +0800 Subject: [PATCH] idgen: correct comments for id generator Comments for id generator format is out of date, correct it. Fixes #7636 Signed-off-by: Peng Gao --- pkg/idutil/id.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/idutil/id.go b/pkg/idutil/id.go index 931beb2d0..2da210626 100644 --- a/pkg/idutil/id.go +++ b/pkg/idutil/id.go @@ -32,8 +32,8 @@ const ( // a node member ID. // // The initial id is in this format: -// High order byte is memberID, next 5 bytes are from timestamp, -// and low order 2 bytes are 0s. +// High order 2 bytes are from memberID, next 5 bytes are from timestamp, +// and low order one byte is a counter. // | prefix | suffix | // | 2 bytes | 5 bytes | 1 byte | // | memberID | timestamp | cnt |