Closed taiyang-li closed 5 years ago
I found that there are several NewTicker assigned to the same variable in task.go. So I remove the redundant one.
I intend to do this, yet it's not very well.
When the task flushes a batch by max count reach condition. The ticker should reset, because the next batch may be very small.
I found that there are several NewTicker assigned to the same variable in task.go. So I remove the redundant one.