From c3bdeb54e909090828352f3cf800b59faf2bb56a Mon Sep 17 00:00:00 2001 From: dudik Date: Thu, 12 Dec 2024 12:38:20 +0100 Subject: [PATCH] fix build --- tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs b/tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs index c2d8f86c61b5..766360d5e382 100644 --- a/tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs +++ b/tracer/src/Datadog.Trace/Debugger/Upload/SymbolUploadApi.cs @@ -89,10 +89,10 @@ public override async Task SendBatchAsync(ArraySegment symbols) using var memoryStream = new MemoryStream(); #if NETFRAMEWORK using var gzipStream = new Vendors.ICSharpCode.SharpZipLib.GZip.GZipOutputStream(memoryStream); - await gzipStream.WriteAsync(symbols.Array, 0, symbols.Array.Length); + await gzipStream.WriteAsync(symbols.Array, 0, symbols.Array.Length).ConfigureAwait(false); #else - await using var gzipStream = new GZipStream(memoryStream, CompressionMode.Compress); - await gzipStream.WriteAsync(symbols.Array, 0, symbols.Array.Length); + using var gzipStream = new GZipStream(memoryStream, CompressionMode.Compress); + await gzipStream.WriteAsync(symbols.Array, 0, symbols.Array.Length).ConfigureAwait(false); #endif symbolsItem = new MultipartFormItem("file", "gzip", "file.gz", new ArraySegment(memoryStream.ToArray())); }