forked from I2P_Developers/i2p.i2p
* SimpleByteCache: Fix ABQ/LBQ selection
This commit is contained in:
@ -88,7 +88,7 @@ public final class SimpleByteCache {
|
||||
* @since 0.9.2
|
||||
*/
|
||||
private Queue<byte[]> createQueue() {
|
||||
if (_maxCached <= MAX_FOR_ABQ)
|
||||
if (_entrySize <= MAX_FOR_ABQ)
|
||||
return new ArrayBlockingQueue(_maxCached);
|
||||
return new LinkedBlockingQueue(_maxCached);
|
||||
}
|
||||
|
Reference in New Issue
Block a user