Skip to content

Commit

Permalink
refactor: remove dead code #1638
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanzalu committed Jan 27, 2025
1 parent 1f5a6b5 commit adf3b56
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,6 @@ public void deleteQueues(AmqpQueue... amqpQueues) throws IOException {
}
}

public boolean getHealth() {
if (!connection.isOpen()) {
logger.error("TaskManager AMQP Health error : Connection is closed");
return false;
}
if (connection.getHeartbeat() <= 0) {
logger.error("TaskManager AMQP Health error : heartbeat equals 0");
return false;
}
return true;
}

private static class UnknownChannelException extends RuntimeException {
public UnknownChannelException(AmqpQueue queue) {
super("Unknown channel for queue " + queue);
Expand Down

0 comments on commit adf3b56

Please sign in to comment.