bwmarrin / snowflake

A simple to use Go (golang) package to generate or parse Twitter snowflake IDs
BSD 2-Clause "Simplified" License
3.02k stars 374 forks source link

Update error log for wrong node id. #13

Closed NineRec closed 6 years ago

NineRec commented 6 years ago

When custom NodeBits was set, the node number may bigger than 1023.

bwmarrin commented 6 years ago

Good point :) Probably should change the error msg :)