refactoring

pull/4066/head
Nikita Koksharov 3 years ago
parent 538e0e13fa
commit b07bd2e816

@ -96,6 +96,12 @@ public class CommandAsyncService implements CommandAsyncExecutor {
} catch (TimeoutException e) {
future.completeExceptionally(new RedisTimeoutException("Subscribe timeout: (" + timeout + "ms). Increase 'subscriptionsPerConnection' and/or 'subscriptionConnectionPoolSize' parameters."));
}
try {
future.join();
} catch (CompletionException e) {
throw (RuntimeException) e.getCause();
}
}
@Override
@ -111,6 +117,12 @@ public class CommandAsyncService implements CommandAsyncExecutor {
} catch (TimeoutException e) {
future.completeExceptionally(new RedisTimeoutException("Subscribe timeout: (" + timeout + "ms). Increase 'subscriptionsPerConnection' and/or 'subscriptionConnectionPoolSize' parameters."));
}
try {
future.join();
} catch (CompletionException e) {
throw (RuntimeException) e.getCause();
}
}
@Override

Loading…
Cancel
Save