From 000c990c76aafa43ec0bc23d9ccc7ad5a347dde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SampsonYe=28=E5=8F=B6=E9=A3=9E=29?= Date: Fri, 23 Sep 2022 14:57:43 +0800 Subject: [PATCH] fix: remove some code (#515) --- src/SkyApm.Core/Transport/AsyncQueueSkyApmLogDispatcher.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/SkyApm.Core/Transport/AsyncQueueSkyApmLogDispatcher.cs b/src/SkyApm.Core/Transport/AsyncQueueSkyApmLogDispatcher.cs index d28898af..b29ecda6 100644 --- a/src/SkyApm.Core/Transport/AsyncQueueSkyApmLogDispatcher.cs +++ b/src/SkyApm.Core/Transport/AsyncQueueSkyApmLogDispatcher.cs @@ -84,8 +84,6 @@ public Task Flush(CancellationToken token = default) _loggerReporter.ReportAsync(loggers, token); } - Interlocked.Exchange(ref _offset, _segmentQueue.Count); - return Task.CompletedTask; } public void Close()