From bf3111cb07024e89b49a3734f6e83623a0f09656 Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Mon, 27 Feb 2023 14:24:18 +0100 Subject: [PATCH] Fixed issue with TryAcquireAsync --- .../Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs | 6 ------ 1 file changed, 6 deletions(-) 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) {