Closed flopp closed 8 years ago
There's something wrong with the for loop in func (iw *IdWorker) timeReGen(last int64) int64 {...} There's no loop condition, there's no break or return in the loop's body => it will loop forever!
for
func (iw *IdWorker) timeReGen(last int64) int64 {...}
Thanks For your Concern, i have fixed this bug : ), code here.You can pull request if you are interesting as well.welcome.
There's something wrong with the
for
loop infunc (iw *IdWorker) timeReGen(last int64) int64 {...}
There's no loop condition, there's no break or return in the loop's body => it will loop forever!