add method for Tree

This commit is contained in:
Looly
2021-11-11 22:57:07 +08:00
parent bb1e4ba76a
commit ab1d8e84e4
4 changed files with 137 additions and 5 deletions

View File

@@ -68,7 +68,6 @@ public class TimingWheel {
* @param consumer 任务处理器
*/
public TimingWheel(long tickMs, int wheelSize, long currentTime, Consumer<TimerTaskList> consumer) {
this.currentTime = currentTime;
this.tickMs = tickMs;
this.wheelSize = wheelSize;
this.interval = tickMs * wheelSize;