From d59a2a29549d2d41d46a4773308e929d62a57ed9 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 31 May 2023 09:23:52 -0700 Subject: [PATCH] cleanup --- src/Services/Podcasts/Podcast.Updater.Worker/Program.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Services/Podcasts/Podcast.Updater.Worker/Program.cs b/src/Services/Podcasts/Podcast.Updater.Worker/Program.cs index 367390f..e619dc7 100644 --- a/src/Services/Podcasts/Podcast.Updater.Worker/Program.cs +++ b/src/Services/Podcasts/Podcast.Updater.Worker/Program.cs @@ -28,9 +28,7 @@ await host.RunAsync(); static async Task UpdatePodcasts(IServiceProvider hostProvider) { - using var scope = hostProvider.CreateScope(); - var handler = scope.ServiceProvider.GetRequiredService(); await handler.HandleUpdateAsync(); } \ No newline at end of file