From c676f9e9ea466dcdcb0e16d5038459e283afa308 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Fri, 10 Jun 2016 18:54:48 -0500 Subject: [PATCH] Correct node error. It's 0-1023! --- snowflake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snowflake.go b/snowflake.go index 110df99..21cc5e8 100644 --- a/snowflake.go +++ b/snowflake.go @@ -40,7 +40,7 @@ type ID int64 func NewNode(node int64) (*Node, error) { if node < 0 || node > nodeMax { - return nil, errors.New("Node number must be between 0 and 1024") + return nil, errors.New("Node number must be between 0 and 1023") } return &Node{