Skip to content

Commit cc0c139

Browse files
committed
chore: 주석 제거
1 parent e102c1d commit cc0c139

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

apps/commerce-streamer/src/main/java/com/loopers/interfaces/consumer/KafkaOutboxConsumer.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public void productViewedListener(
4444
Acknowledgment acknowledgment
4545
) throws JsonProcessingException {
4646

47-
// 1) 배치 내 productId별 점수 누적
4847
Map<Long, Double> scoreDelta = new HashMap<>();
4948

5049
for (var record : messages) {
@@ -73,8 +72,7 @@ public void productViewedListener(
7372
zset.incrementScore(key, String.valueOf(e.getKey()), e.getValue()); // ZINCRBY
7473
}
7574

76-
// 3) 일간 키는 TTL 걸어두는 게 운영에 유리 (예: 8일 보관)
77-
redisTemplate.expire(key, Duration.ofDays(8));
75+
redisTemplate.expire(key, Duration.ofDays(2));
7876

7977
acknowledgment.acknowledge();
8078
}

0 commit comments

Comments
 (0)