Skip to content

Commit

Permalink
Update bits
Browse files Browse the repository at this point in the history
  • Loading branch information
hengsok committed Aug 4, 2021
1 parent 60bfbeb commit 174ae8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonyflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (

// These constants are the bit lengths of Sonyflake ID parts.
const (
BitLenTime = 41 // bit length of time
BitLenSequence = 8 // bit length of sequence number
BitLenTime = 40 // bit length of time
BitLenSequence = 9 // bit length of sequence number
BitLenMachineID = 63 - BitLenTime - BitLenSequence // bit length of machine id
)

Expand Down

0 comments on commit 174ae8b

Please sign in to comment.