From d66f7336d37ed9fb16628d1a6110d02d84ce1090 Mon Sep 17 00:00:00 2001
From: Octol1ttle <l1ttleofficial@outlook.com>
Date: Wed, 22 Nov 2023 14:25:05 +0500
Subject: [PATCH] fix: use async method with cancellation support to load
 settings JSON

---
 src/Services/GuildDataService.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
         {