Revert 2 changes unrelated to BAEL-7074
This commit is contained in:
parent
38f30e733f
commit
1aa2f849f4
|
@ -48,7 +48,7 @@ public class RetryCompletableFuture {
|
|||
CompletableFuture<T> cf = CompletableFuture.supplyAsync(supplier);
|
||||
sleep(100);
|
||||
for (int i = 0; i < maxRetries; i++) {
|
||||
//cf = cf.exceptionallyAsync(__ -> supplier.get());
|
||||
cf = cf.exceptionallyAsync(__ -> supplier.get());
|
||||
}
|
||||
return cf;
|
||||
}
|
||||
|
|
|
@ -20,9 +20,9 @@ public class CustomCompletableFuture<T> extends CompletableFuture<T> {
|
|||
return future;
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public Executor defaultExecutor() {
|
||||
// return executor;
|
||||
// }
|
||||
@Override
|
||||
public Executor defaultExecutor() {
|
||||
return executor;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue