refactor: 移除分布式锁获取时的超时参数

This commit is contained in:
ccnetcore
2025-08-30 21:17:25 +08:00
parent 1b00e505b7
commit 72387235a0
2 changed files with 2 additions and 4 deletions

View File

@@ -95,8 +95,7 @@ public class FuwuhaoService : ApplicationService
//制作幂等
await using (var handle =
await DistributedLock.TryAcquireLockAsync($"Yi:fuwuhao:callbacklock:{scene}",
TimeSpan.FromSeconds(60)))
await DistributedLock.TryAcquireLockAsync($"Yi:fuwuhao:callbacklock:{scene}"))
{
if (handle == null)
{

View File

@@ -308,8 +308,7 @@ namespace Yi.Framework.Rbac.Domain.Managers
//制作幂等
await using (var handle =
await DistributedLock.TryAcquireLockAsync($"{CacheKeyPrefix}Register:Lock:{userName}",
TimeSpan.FromSeconds(60)))
await DistributedLock.TryAcquireLockAsync($"{CacheKeyPrefix}Register:Lock:{userName}"))
{
if (handle is null)
{