diff --git a/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java b/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java index 6a8ade60..0e7e1497 100644 --- a/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java +++ b/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java @@ -94,13 +94,9 @@ public String getName() { public CompletableFuture getFuture() { Supplier supplier = prepareBaseSupplier(); - try { - return decorateSupplierWithResilience(supplier) + return decorateSupplierWithResilience(supplier) .get() .toCompletableFuture(); - } catch (Exception e) { - throw new RuntimeException(e); - } } private Supplier prepareBaseSupplier() {