Browse Source

Remove redundant FallbackToProvider call in MedallionAbpDistributedLock

pull/25497/head
maliming 4 months ago
parent
commit
e42ed4268e
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      framework/src/Volo.Abp.DistributedLocking/Volo/Abp/DistributedLocking/MedallionAbpDistributedLock.cs

2
framework/src/Volo.Abp.DistributedLocking/Volo/Abp/DistributedLocking/MedallionAbpDistributedLock.cs

@ -32,8 +32,6 @@ public class MedallionAbpDistributedLock : IAbpDistributedLock, ITransientDepend
{ {
Check.NotNullOrWhiteSpace(name, nameof(name)); Check.NotNullOrWhiteSpace(name, nameof(name));
var key = DistributedLockKeyNormalizer.NormalizeKey(name); var key = DistributedLockKeyNormalizer.NormalizeKey(name);
CancellationTokenProvider.FallbackToProvider(cancellationToken);
var handle = await DistributedLockProvider.TryAcquireLockAsync( var handle = await DistributedLockProvider.TryAcquireLockAsync(
key, key,

Loading…
Cancel
Save