avoid too large expiration time

This commit is contained in:
Chris Lu
2024-02-04 09:20:21 -08:00
parent 1b5ba4190c
commit 0a12301b3d
4 changed files with 118 additions and 84 deletions

View File

@@ -95,7 +95,7 @@ func NewMessageBroker(option *MessageQueueBrokerOption, grpcDialOption grpc.Dial
for {
time.Sleep(time.Second)
if err := mqBroker.lockAsBalancer.AttemptToLock(lock_manager.MaxDuration); err != nil {
if err := mqBroker.lockAsBalancer.AttemptToLock(lock_manager.RenewInterval); err != nil {
glog.V(0).Infof("AttemptToLock: %v", err)
}
}