🐛 Proper file upload retries

This commit is contained in:
2025-09-26 22:11:52 +08:00
parent 4910c3296b
commit d75876a772
2 changed files with 5 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ public class BroadcastEventHandler(
private static readonly string[] AnimatedImageExtensions =
[".gif", ".apng", ".avif"];
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
var js = nats.CreateJetStreamContext();
@@ -291,4 +293,4 @@ public class BroadcastEventHandler(
await fs._PurgeCacheAsync(fileId);
}
}
}
}

View File

@@ -346,7 +346,7 @@ public class FileService(
if (selfDestruct) File.Delete(filePath);
}
public async Task UploadFileToRemoteAsync(
private async Task UploadFileToRemoteAsync(
string storageId,
Guid targetRemote,
Stream stream,