Skip to content

Commit

Permalink
cleanup: This static field can be null before it is initalized the first
Browse files Browse the repository at this point in the history
time
  • Loading branch information
Stelzi79 committed Sep 5, 2023
1 parent e9a9bd9 commit ca23a69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/TagzApp.Storage.Postgres/PostgresMessaging.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.Collections.Concurrent;

using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Concurrent;
using TagzApp.Common.Models;

namespace TagzApp.Storage.Postgres;

Expand All @@ -14,7 +13,7 @@ internal class PostgresMessaging : IDisposable
private List<Task> _ProviderTasks = new List<Task>();
internal readonly Dictionary<string, ConcurrentQueue<Content>> Queue = new();
private readonly Dictionary<string, ConcurrentBag<Action<Content>>> _Actions = new();
private static IServiceProvider _Services;
private static IServiceProvider? _Services;
private readonly Task _QueueWatcher;

public PostgresMessaging(IServiceProvider services)
Expand Down

0 comments on commit ca23a69

Please sign in to comment.