refactor: 移除分布式锁获取时的超时参数
This commit is contained in:
@@ -95,8 +95,7 @@ public class FuwuhaoService : ApplicationService
|
|||||||
|
|
||||||
//制作幂等
|
//制作幂等
|
||||||
await using (var handle =
|
await using (var handle =
|
||||||
await DistributedLock.TryAcquireLockAsync($"Yi:fuwuhao:callbacklock:{scene}",
|
await DistributedLock.TryAcquireLockAsync($"Yi:fuwuhao:callbacklock:{scene}"))
|
||||||
TimeSpan.FromSeconds(60)))
|
|
||||||
{
|
{
|
||||||
if (handle == null)
|
if (handle == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -308,8 +308,7 @@ namespace Yi.Framework.Rbac.Domain.Managers
|
|||||||
|
|
||||||
//制作幂等
|
//制作幂等
|
||||||
await using (var handle =
|
await using (var handle =
|
||||||
await DistributedLock.TryAcquireLockAsync($"{CacheKeyPrefix}Register:Lock:{userName}",
|
await DistributedLock.TryAcquireLockAsync($"{CacheKeyPrefix}Register:Lock:{userName}"))
|
||||||
TimeSpan.FromSeconds(60)))
|
|
||||||
{
|
{
|
||||||
if (handle is null)
|
if (handle is null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user