1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 16:33:36 +03:00

fix: use async method with cancellation support to load settings JSON

This commit is contained in:
Octol1ttle 2023-11-22 14:25:05 +05:00
parent 557690fd0f
commit d66f7336d3
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

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