Upgrade Autofac dependency

This commit is contained in:
Ske
2020-06-15 00:52:20 +02:00
parent ca882dba73
commit 088bc15e5e
2 changed files with 4 additions and 4 deletions

View File

@@ -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<ISentryEnricher<T>>();