diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 77b78c00..5957b1d4 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -101,7 +101,7 @@ namespace PluralKit.Bot async Task HandleEventInner() { - var serviceScope = _services.BeginLifetimeScope(); + await using var serviceScope = _services.BeginLifetimeScope(); // Also, find a Sentry enricher for the event type (if one is present), and ask it to put some event data in the Sentry scope var sentryEnricher = serviceScope.ResolveOptional>(); diff --git a/PluralKit.Core/PluralKit.Core.csproj b/PluralKit.Core/PluralKit.Core.csproj index e4dc7642..49040aa0 100644 --- a/PluralKit.Core/PluralKit.Core.csproj +++ b/PluralKit.Core/PluralKit.Core.csproj @@ -1,4 +1,4 @@ - + netcoreapp3.1 @@ -7,8 +7,8 @@ - - + +