Skip to content

Commit

Permalink
Make codacy happy
Browse files Browse the repository at this point in the history
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
  • Loading branch information
HenrikJannsen committed Dec 23, 2022
1 parent 012c4fd commit 532ad53
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions core/src/main/java/bisq/core/dao/node/full/RpcService.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ public void onFailure(@NotNull Throwable throwable) {
}, MoreExecutors.directExecutor());
} catch (RejectedExecutionException e) {
if (!shutdownInProgress) {
log.warn(e.toString(), e);
log.error(e.toString(), e);
throw e;
}
} catch (Exception e) {
log.warn(e.toString(), e);
log.error(e.toString(), e);
throw e;
}
}
Expand Down Expand Up @@ -316,11 +316,14 @@ public void onFailure(@NotNull Throwable throwable) {
UserThread.execute(() -> errorHandler.accept(throwable));
}
}, MoreExecutors.directExecutor());
} catch (Exception e) {
if (!shutdownInProgress || !(e instanceof RejectedExecutionException)) {
} catch (RejectedExecutionException e) {
if (!shutdownInProgress) {
log.error("Exception at requestChainHeadHeight", e);
throw e;
}
} catch (Exception e) {
log.error("Exception at requestChainHeadHeight", e);
throw e;
}
}

Expand Down Expand Up @@ -350,12 +353,14 @@ public void onFailure(@NotNull Throwable throwable) {
UserThread.execute(() -> errorHandler.accept(throwable));
}
}, MoreExecutors.directExecutor());
} catch (Exception e) {
log.error("Exception at requestDtoBlock", e);
if (!shutdownInProgress || !(e instanceof RejectedExecutionException)) {
log.warn(e.toString(), e);
} catch (RejectedExecutionException e) {
if (!shutdownInProgress) {
log.error("Exception at requestDtoBlock", e);
throw e;
}
} catch (Exception e) {
log.error("Exception at requestDtoBlock", e);
throw e;
}
}

Expand Down Expand Up @@ -386,11 +391,14 @@ public void onFailure(@NotNull Throwable throwable) {
UserThread.execute(() -> errorHandler.accept(throwable));
}
}, MoreExecutors.directExecutor());
} catch (Exception e) {
if (!shutdownInProgress || !(e instanceof RejectedExecutionException)) {
log.warn(e.toString(), e);
} catch (RejectedExecutionException e) {
if (!shutdownInProgress) {
log.error(e.toString(), e);
throw e;
}
} catch (Exception e) {
log.error(e.toString(), e);
throw e;
}
}

Expand Down

0 comments on commit 532ad53

Please sign in to comment.