Skip to content

Commit

Permalink
removed unused check
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin Zheng committed Dec 10, 2024
1 parent 8bcd92c commit 71aa2ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/swisspush/redisques/RedisQues.java
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,8 @@ private void registerKeepConsumerAlive() {
private void handleConsumerAlive(Message<String> msg) {
final String consumerId = msg.body();
final long periodMs = configurationProvider.configuration().getRefreshPeriod() * 1000L;
if (!UUID.fromString(consumerId).toString().equals(consumerId)) {
log.warn("invalid RedisQues consumer id {}", consumerId);
return;
}
log.debug("RedisQues consumer {} keep alive renewed", consumerId);
aliveConsumers.put(consumerId, currentTimeMillis() + (periodMs * 4));
log.debug("RedisQues consumer {} keep alive renewed", consumerId);
}


Expand Down

0 comments on commit 71aa2ea

Please sign in to comment.