一种对源码修改更小的方式:
```java
long now = System.currentTimeMillis();
if (Math.abs(now - lastResetTime) > interval) {
token.set(rate);
lastResetTime = now;
}
```
修改后,令牌桶的重置条件:**当前系统时间 与 上次重置时间的偏差 > 时间间隔**。[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2345 ] This message was relayed via gitbox.apache.org for [email protected]
