Skip to content

Commit 393430e

Browse files
author
vguruparan
committed
Update crontab naming
1 parent 4a14395 commit 393430e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Infrastructure/BotSharp.Abstraction/Crontab/Settings/CrontabSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class CrontabSettings
44
{
55
public CrontabBaseSetting EventSubscriber { get; set; } = new();
66
public CrontabBaseSetting Watcher { get; set; } = new();
7-
public string LockName { get; set; } = "default";
7+
public string LockName { get; set; } = "CrontabWatcher:locker";
88
}
99

1010
public class CrontabBaseSetting

src/Infrastructure/BotSharp.Core.Crontab/Services/CrontabWatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public CrontabWatcher(IServiceProvider services, ILogger<CrontabWatcher> logger,
1818
_logger = logger;
1919
_services = services;
2020
_cronSettings = cronSettings;
21-
DIST_KEY = $"CrontabWatcher:locker-{_cronSettings.LockName}";
21+
DIST_KEY = _cronSettings.LockName;
2222
}
2323

2424
protected override async Task ExecuteAsync(CancellationToken stoppingToken)

0 commit comments

Comments
 (0)