From 0db916cd4123848e37cb6768accbb171b93b44e2 Mon Sep 17 00:00:00 2001 From: Mirko Da Corte Date: Sat, 5 Oct 2024 23:12:52 +0200 Subject: [PATCH] Remove unused parameter from SendChunksAsync method --- src/BeeNet.Core/Models/ChunkUploaderWebSocket.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/BeeNet.Core/Models/ChunkUploaderWebSocket.cs b/src/BeeNet.Core/Models/ChunkUploaderWebSocket.cs index e0ea964..bf4d020 100644 --- a/src/BeeNet.Core/Models/ChunkUploaderWebSocket.cs +++ b/src/BeeNet.Core/Models/ChunkUploaderWebSocket.cs @@ -76,16 +76,12 @@ public virtual async Task SendChunkAsync( public virtual async Task SendChunksAsync( SwarmChunk[] chunkBatch, - Action? onChunkBatchSent = null, CancellationToken cancellationToken = default) { ArgumentNullException.ThrowIfNull(chunkBatch, nameof(chunkBatch)); foreach (var (chunk, i) in chunkBatch.Select((c, i) => (c, i))) - { await SendChunkAsync(chunk, cancellationToken).ConfigureAwait(false); - onChunkBatchSent?.Invoke(i + 1); - } } } } \ No newline at end of file