Add a note (#36)

This commit is contained in:
Yoshiyuki Mineo
2022-08-13 00:23:02 +09:00
committed by GitHub
parent 90e18212ad
commit 3719d006ac

View File

@@ -71,6 +71,10 @@ func (sf *Sonyflake) NextID() (uint64, error)
NextID can continue to generate IDs for about 174 years from StartTime.
But after the Sonyflake time is over the limit, NextID returns an error.
> **Note:**
> Sonyflake currently does not use the most significant bit of IDs,
> so you can convert Sonyflake IDs from `uint64` to `int64` safely.
AWS VPC and Docker
------------------