mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 09:50:39 +01:00
fix lock TTL
This commit is contained in:
1 parent
44b49bec99
commit
f9131de43f
1 file changed
+3
-4
@@ -93,10 +93,9 @@ func NewMessageBroker(option *MessageQueueBrokerOption, grpcDialOption grpc.Dial
|
||||
}
|
||||
})
|
||||
for {
|
||||
|
||||
time.Sleep(time.Second)
|
||||
if err := mqBroker.lockAsBalancer.AttemptToLock(lock_manager.RenewInterval); err != nil {
|
||||
glog.V(0).Infof("AttemptToLock: %v", err)
|
||||
time.Sleep(lock_manager.RenewInterval)
|
||||
if err := mqBroker.lockAsBalancer.AttemptToLock(lock_manager.LiveLockTTL); err != nil {
|
||||
glog.V(4).Infof("AttemptToLock: %v", err)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in new issue
Block a user