🐛 Proper file upload retries
This commit is contained in:
@@ -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();
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user