Browse Source

fix lock TTL

pull/5637/head
Chris Lu 11 months ago
parent
commit
f9131de43f
  1. 7
      weed/mq/broker/broker_server.go

7
weed/mq/broker/broker_server.go

@ -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)
}
}
}()

Loading…
Cancel
Save