fixed RedissonBoundedBlockingQueue.pollAsync blocks if timeout is less than 1 second #896

pull/903/head
Nikita 8 years ago
parent 083065c332
commit 278b6d7ea1

@ -216,7 +216,7 @@ public class RedissonBoundedBlockingQueue<V> extends RedissonQueue<V> implements
@Override
public RFuture<V> pollAsync(long timeout, TimeUnit unit) {
RFuture<V> takeFuture = commandExecutor.writeAsync(getName(), codec, RedisCommands.BLPOP_VALUE, getName(), unit.toSeconds(timeout));
RFuture<V> takeFuture = commandExecutor.writeAsync(getName(), codec, RedisCommands.BLPOP_VALUE, getName(), toSeconds(timeout, unit));
return wrapTakeFuture(takeFuture);
}

Loading…
Cancel
Save