Update tests/SharpCompress.Performance/Benchmarks/SevenZipBenchmarks.cs

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
This commit is contained in:
Adam Hathcock
2026-02-11 14:00:37 +00:00
committed by GitHub
parent fbec7dc083
commit 3689b893db

View File

@@ -36,7 +36,7 @@ public class SevenZipBenchmarks : ArchiveBenchmarkBase
public async Task SevenZipLzmaExtractAsync()
{
using var stream = new MemoryStream(_lzmaBytes);
using var archive = SevenZipArchive.OpenArchive(stream);
await using var archive = SevenZipArchive.OpenAsyncArchive(stream);
foreach (var entry in archive.Entries.Where(e => !e.IsDirectory))
{
using var entryStream = await entry.OpenEntryStreamAsync().ConfigureAwait(false);