Skip to content

Commit

Permalink
Removed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jan 3, 2024
1 parent d1ca126 commit d28f352
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Foundatio.Redis/Queues/RedisQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ protected override Task<QueueStats> GetQueueStatsImplAsync() {
}

protected override QueueStats GetMetricsQueueStats() {
var queued = Database.ListLength(_queueListName);
var wait = Database.ListLength(_waitListName);
var working = Database.ListLength(_workListName);
var deadLetter = Database.ListLength(_deadListName);
long queued = Database.ListLength(_queueListName);
long wait = Database.ListLength(_waitListName);
long working = Database.ListLength(_workListName);
long deadLetter = Database.ListLength(_deadListName);

return new QueueStats {
Queued = queued + wait,
Expand Down Expand Up @@ -231,7 +231,7 @@ await Run.WithRetriesAsync(() => Task.WhenAll(
return id;
}

private readonly List<Task> _workers = new();
private readonly List<Task> _workers = [];

protected override void StartWorkingImpl(Func<IQueueEntry<T>, CancellationToken, Task> handler, bool autoComplete, CancellationToken cancellationToken) {
if (handler == null)
Expand Down

0 comments on commit d28f352

Please sign in to comment.