diff --git a/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs b/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs index d7c2dde2b1..526df6464a 100644 --- a/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs +++ b/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs @@ -28,12 +28,6 @@ public class LocalAbpDistributedLock : IAbpDistributedLock, ISingletonDependency Check.NotNullOrWhiteSpace(name, nameof(name)); var key = DistributedLockKeyNormalizer.NormalizeKey(name); - //if (timeout == default) - //{ - // var releaser = await _localSyncObjects.LockAsync(key, cancellationToken); - // return new LocalAbpDistributedLockHandle(releaser); - //} - var timeoutReleaser = await _localSyncObjects.LockAsync(key, timeout, cancellationToken); if (!timeoutReleaser.EnteredSemaphore) {