Add a note (#36)

This commit is contained in:
Yoshiyuki Mineo authored and GitHub committed 2022-08-13 00:23:02 +09:00
1 parent 90e18212ad
commit 3719d006ac
1 file changed
+4
+4
View File
@@ -71,6 +71,10 @@ func (sf *Sonyflake) NextID() (uint64, error)
NextID can continue to generate IDs for about 174 years from StartTime. 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. 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 AWS VPC and Docker
------------------ ------------------