forked from EllieBotDevs/elliebot
fixed build warnings
This commit is contained in:
parent
391d2e43e8
commit
a321cdbe55
4 changed files with 12 additions and 12 deletions
src/EllieBot/Services
|
@ -8,8 +8,6 @@ public class GrpcApiService : IEService, IReadyExecutor
|
|||
{
|
||||
private Server? _app;
|
||||
|
||||
private static readonly bool _isEnabled = true;
|
||||
|
||||
private readonly DiscordSocketClient _client;
|
||||
private readonly OtherSvc _other;
|
||||
private readonly ExprsSvc _exprs;
|
||||
|
@ -30,11 +28,11 @@ public class GrpcApiService : IEService, IReadyExecutor
|
|||
_creds = creds;
|
||||
}
|
||||
|
||||
public async Task OnReadyAsync()
|
||||
public Task OnReadyAsync()
|
||||
{
|
||||
var creds = _creds.GetCreds();
|
||||
if (creds.GrpcApi is null || creds.GrpcApi.Enabled)
|
||||
return;
|
||||
return Task.CompletedTask;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -65,5 +63,7 @@ public class GrpcApiService : IEService, IReadyExecutor
|
|||
{
|
||||
_app?.ShutdownAsync().GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
Reference in a new issue