code cleanup
This commit is contained in:
parent
564a60a44c
commit
af41c88b24
@ -100,11 +100,7 @@ func NewNode(node int64) (*Node, error) {
|
|||||||
return nil, errors.New("Node number must be between 0 and " + strconv.FormatInt(nodeMax, 10))
|
return nil, errors.New("Node number must be between 0 and " + strconv.FormatInt(nodeMax, 10))
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Node{
|
return &Node{node: node}, nil
|
||||||
// time: 0,
|
|
||||||
node: node,
|
|
||||||
step: 0,
|
|
||||||
}, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate creates and returns a unique snowflake ID
|
// Generate creates and returns a unique snowflake ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user