From 1ad9ab9d99ec563c5f9dc4326f57fc0069e0e927 Mon Sep 17 00:00:00 2001 From: Xargin Date: Tue, 10 Jul 2018 11:08:36 +0800 Subject: [PATCH] fix typo --- ch6-cloud/ch6-07-dist-id.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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