Formatting fixes

This commit is contained in:
md_5 2019-08-21 20:04:16 +10:00
parent 34febec65f
commit 450c33db64
2 changed files with 6 additions and 6 deletions

View File

@ -16,14 +16,14 @@ public class ConnectionThrottle
public ConnectionThrottle(int throttleTime, int throttleLimit)
{
this(Ticker.systemTicker(), throttleTime, throttleLimit);
this( Ticker.systemTicker(), throttleTime, throttleLimit );
}
@VisibleForTesting
ConnectionThrottle(Ticker ticker, int throttleTime, int throttleLimit)
{
this.throttle = CacheBuilder.newBuilder()
.ticker(ticker)
.ticker( ticker )
.concurrencyLevel( Runtime.getRuntime().availableProcessors() )
.initialCapacity( 100 )
.expireAfterWrite( throttleTime, TimeUnit.MILLISECONDS )