Skip to content

Commit

Permalink
Clean up Redis close connection
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Nov 16, 2023
1 parent 370ac4e commit 4a45ac2
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,10 @@ public void closeConnection() {
var shuttingDown = group.shutdownGracefully();
try {
shuttingDown.get();
} catch (Exception e) {
e.printStackTrace();
}
if (group.isShutdown()) {
System.out.println("Done shutdownGracefully");
} else {
System.out.println("Something went wrong");
} catch (InterruptedException | ExecutionException exception) {
exception.printStackTrace();
}
assert group.isShutdown(): "Redis connection failed to shutdown gracefully";
}
}

Expand Down

0 comments on commit 4a45ac2

Please sign in to comment.