fix: 解决 redis mq 消息丢失问题
This commit is contained in:
parent
e9645d7054
commit
2d7d3f1511
|
@ -43,7 +43,6 @@ public class RedisPendingMessageResendJob {
|
|||
@Scheduled(cron = "35 * * * * ?")
|
||||
public void messageResend() {
|
||||
RLock lock = redissonClient.getLock(LOCK_KEY);
|
||||
log.info("[messageResend][尝试获取锁]");
|
||||
// 尝试加锁
|
||||
if (lock.tryLock()) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue