Skip to content

Commit

Permalink
Remove unused parameter from SendChunksAsync method
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Oct 5, 2024
1 parent 1982df2 commit 0db916c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/BeeNet.Core/Models/ChunkUploaderWebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,12 @@ public virtual async Task SendChunkAsync(

public virtual async Task SendChunksAsync(
SwarmChunk[] chunkBatch,
Action<int>? 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);
}
}
}
}

0 comments on commit 0db916c

Please sign in to comment.