refactoring

pull/5757/head
Nikita Koksharov 10 months ago
parent af3dd26989
commit 28f94d2013

@ -98,6 +98,11 @@ public class RedisQueuedBatchExecutor<V, R> extends BaseRedisBatchExecutor<V, R>
protected void releaseConnection(CompletableFuture<R> attemptPromise, CompletableFuture<RedisConnection> connectionFuture) {
if (RedisCommands.EXEC.getName().equals(command.getName())
|| RedisCommands.DISCARD.getName().equals(command.getName())) {
if (attempt < attempts
&& attemptPromise.isCompletedExceptionally()) {
return;
}
super.releaseConnection(attemptPromise, connectionFuture);
}
}

Loading…
Cancel
Save