mirror of
https://github.com/sony/sonyflake.git
synced 2026-12-04 11:09:27 +00:00
docs: update Settings struct in README to use int for MachineID and CheckMachineID (v2)
This commit is contained in:
1 parent
fd450d1c8e
commit
60560dc4f7
1 file changed
+2
-2
@@ -44,8 +44,8 @@ You can configure Sonyflake by the struct Settings:
|
|||||||
```go
|
```go
|
||||||
type Settings struct {
|
type Settings struct {
|
||||||
StartTime time.Time
|
StartTime time.Time
|
||||||
MachineID func() (int64, error)
|
MachineID func() (int, error)
|
||||||
CheckMachineID func(int64) bool
|
CheckMachineID func(int) bool
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user