Fix compiler issues
This commit is contained in:
parent
5435078e58
commit
77d5aca62e
|
@ -25,7 +25,11 @@ public class FloodLimit {
|
|||
|
||||
public ScheduledFuture<?> acquirePermit() throws InterruptedException {
|
||||
permits.acquire();
|
||||
return TIMER.schedule(permits::release, releaseDelay, timeUnit);
|
||||
return TIMER.schedule(this::releasePermit, releaseDelay, timeUnit);
|
||||
}
|
||||
|
||||
protected void releasePermit() {
|
||||
permits.release();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue