mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
idgen: correct comments for id generator
Comments for id generator format is out of date, correct it. Fixes #7636 Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
This commit is contained in:
parent
512bac0ee9
commit
d204b6c3b7
@ -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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user