fix send ready message service probably

This commit is contained in:
Stanley Dimant
2024-04-28 12:03:11 +02:00
committed by Loporrit
parent c06edeebdd
commit 128a5a0aa2

View File

@@ -22,6 +22,8 @@ public class ShardClientReadyMessageService : IClientReadyMessageService
}
public void SendDownloadReady(string uid, Guid requestId)
{
_ = Task.Run(async () =>
{
var mainUrl = _configurationService.GetValue<Uri>(nameof(StaticFilesServerConfiguration.MainFileServerAddress));
var path = MareFiles.MainSendReadyFullPath(mainUrl, uid, requestId);
@@ -31,8 +33,6 @@ public class ShardClientReadyMessageService : IClientReadyMessageService
};
msg.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _tokenGenerator.Token);
_ = Task.Run(async () =>
{
_logger.LogInformation("Sending Client Ready for {uid}:{requestId} to {path}", uid, requestId, path);
try
{