🐛 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

@@ -28,6 +28,8 @@ public class BroadcastEventHandler(
private static readonly string[] AnimatedImageExtensions = private static readonly string[] AnimatedImageExtensions =
[".gif", ".apng", ".avif"]; [".gif", ".apng", ".avif"];
protected override async Task ExecuteAsync(CancellationToken stoppingToken) protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{ {
var js = nats.CreateJetStreamContext(); var js = nats.CreateJetStreamContext();

View File

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