diff --git a/ch6-cloud/ch6-07-dist-id.md b/ch6-cloud/ch6-07-dist-id.md index 580385d..9cf523a 100644 --- a/ch6-cloud/ch6-07-dist-id.md +++ b/ch6-cloud/ch6-07-dist-id.md @@ -207,8 +207,9 @@ func checkMachineID(machineID uint16) bool { func main() { t, _ := time.Parse("2006-01-02", "2018-01-01") settings := sonyflake.Settings{ - StartTime: t, - MachineID: getMachineID, + StartTime: t, + MachineID: getMachineID, + CheckMachineID: checkMachineID, } sf := sonyflake.NewSonyflake(settings) @@ -220,4 +221,5 @@ func main() { fmt.Println(id) } -``` + +``` \ No newline at end of file