refactor: 移除分布式锁获取时的超时参数
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user