1
0
mirror of https://github.com/etcd-io/etcd.git synced 2026-02-05 06:46:49 +01:00

idutil: document event window as 2^48

6 byte suffix means event window is 2^48, not 2^56.

Signed-off-by: Upamanyu Sharma <upamanyu@mit.edu>
This commit is contained in:
Upamanyu Sharma
2025-09-26 13:11:32 -04:00
parent d3f136a0e1
commit 4492810a21

View File

@@ -43,7 +43,7 @@ const (
//
// It increases suffix to generate the next id.
// The count field may overflow to timestamp field, which is intentional.
// It helps to extend the event window to 2^56. This doesn't break that
// It helps to extend the event window to 2^48. This doesn't break that
// id generated after restart is unique because etcd throughput is <<
// 256req/ms(250k reqs/second).
type Generator struct {