mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-26 14:19:38 +08:00
remove log.
This commit is contained in:
parent
cdf3e9cdb3
commit
dae7c072ed
@ -229,7 +229,6 @@ func (e *EtcdLocker) IsLockOwner() bool {
|
||||
|
||||
func (e *EtcdLocker) ExecuteWithLock(ctx context.Context, task func()) {
|
||||
if atomic.LoadInt32(&e.isLockOwner) == 0 {
|
||||
log.ZDebug(ctx, "Instance does not own lock (local check), skipping task execution", "instanceID", e.instanceID)
|
||||
return
|
||||
}
|
||||
isOwner, err := e.CheckLockOwnership(ctx)
|
||||
@ -238,7 +237,6 @@ func (e *EtcdLocker) ExecuteWithLock(ctx context.Context, task func()) {
|
||||
return
|
||||
}
|
||||
if !isOwner {
|
||||
log.ZDebug(ctx, "Instance does not own lock (etcd verification), skipping task execution", "instanceID", e.instanceID)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user