Skip to content

Commit

Permalink
[INLONG-9982][Agent] Modify based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwwhuang committed Apr 15, 2024
1 parent 4b99136 commit e63799a
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,7 @@ private Consumer<byte[]> getConsumer() {
LOGGER.info("Skip to reset consume");
}
return consumer;
} catch (PulsarClientException e) {
if (consumer == null) {
try {
consumer.close();
} catch (PulsarClientException ex) {
LOGGER.error("close consumer error", e);
}
}
LOGGER.error("get consumer error", e);
} catch (IllegalArgumentException e) {
} catch (PulsarClientException | IllegalArgumentException e) {
if (consumer == null) {
try {
consumer.close();
Expand Down

0 comments on commit e63799a

Please sign in to comment.