From 7e47c56015fef894e8e70bd65479f2fe17614fac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:27:55 +0500 Subject: [PATCH] Bump Microsoft.Extensions.Hosting from 7.0.1 to 8.0.0 (#187) Bumps [Microsoft.Extensions.Hosting](https://github.com/dotnet/runtime) from 7.0.1 to 8.0.0. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com> --- Octobot.csproj | 2 +- src/Services/GuildDataService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Octobot.csproj b/Octobot.csproj index 3abe2d6..92f4755 100644 --- a/Octobot.csproj +++ b/Octobot.csproj @@ -23,7 +23,7 @@ <PackageReference Include="Humanizer.Core.ru" Version="2.14.1" /> <PackageReference Include="JetBrains.Annotations" Version="2023.3.0" /> <PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" /> - <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" /> + <PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" /> <PackageReference Include="Remora.Discord.Caching" Version="37.0.0" /> <PackageReference Include="Remora.Discord.Extensions" Version="5.3.2" /> <PackageReference Include="Remora.Discord.Hosting" Version="6.0.7" /> diff --git a/src/Services/GuildDataService.cs b/src/Services/GuildDataService.cs index 78203b5..d76fffc 100644 --- a/src/Services/GuildDataService.cs +++ b/src/Services/GuildDataService.cs @@ -100,7 +100,7 @@ public sealed class GuildDataService : IHostedService JsonNode? jsonSettings = null; try { - jsonSettings = JsonNode.Parse(settingsStream); + jsonSettings = await JsonNode.ParseAsync(settingsStream, cancellationToken: ct); } catch (Exception e) {