mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
* 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