mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-26 22:40:40 +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()) {
|
func (e *EtcdLocker) ExecuteWithLock(ctx context.Context, task func()) {
|
||||||
if atomic.LoadInt32(&e.isLockOwner) == 0 {
|
if atomic.LoadInt32(&e.isLockOwner) == 0 {
|
||||||
log.ZDebug(ctx, "Instance does not own lock (local check), skipping task execution", "instanceID", e.instanceID)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
isOwner, err := e.CheckLockOwnership(ctx)
|
isOwner, err := e.CheckLockOwnership(ctx)
|
||||||
@ -238,7 +237,6 @@ func (e *EtcdLocker) ExecuteWithLock(ctx context.Context, task func()) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !isOwner {
|
if !isOwner {
|
||||||
log.ZDebug(ctx, "Instance does not own lock (etcd verification), skipping task execution", "instanceID", e.instanceID)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user