Merge pull request #15 from vigdail/bugfix/atomic_alignment

Proper fields alignment in `InternalUuidGenerator` struct
This commit is contained in:
mayswind
2023-04-20 22:49:49 +08:00
committed by GitHub
+1 -1
View File
@@ -35,8 +35,8 @@ type InternalUuidInfo struct {
// InternalUuidGenerator represents internal bundled uuid generator
type InternalUuidGenerator struct {
uuidServerId uint8
uuidSeqNumbers [1 << internalUuidTypeBits]uint64
uuidServerId uint8
}
// NewInternalUuidGenerator returns a new internal uuid generator