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:
parent
557690fd0f
commit
d66f7336d3
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ public sealed class GuildDataService : IHostedService
|
||||||
JsonNode? jsonSettings = null;
|
JsonNode? jsonSettings = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
jsonSettings = JsonNode.Parse(settingsStream);
|
jsonSettings = await JsonNode.ParseAsync(settingsStream, cancellationToken: ct);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue