From 08524e94ba6de5810468e3111c1725c1af224d95 Mon Sep 17 00:00:00 2001 From: Solareon <769465+solareon@users.noreply.github.com> Date: Wed, 8 Apr 2026 09:32:46 +0200 Subject: [PATCH] fix: remove extra FlushAsync This should improve buffer performance for the JsonWriter. I guess that the others in this file are probably redundant as well but out of scope for this PR. --- DiscordChatExporter.Core/Exporting/JsonMessageWriter.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/DiscordChatExporter.Core/Exporting/JsonMessageWriter.cs b/DiscordChatExporter.Core/Exporting/JsonMessageWriter.cs index 988b4464..83969ba1 100644 --- a/DiscordChatExporter.Core/Exporting/JsonMessageWriter.cs +++ b/DiscordChatExporter.Core/Exporting/JsonMessageWriter.cs @@ -409,7 +409,6 @@ internal class JsonMessageWriter(Stream stream, ExportContext context) } _writer.WriteEndObject(); - await _writer.FlushAsync(cancellationToken); } public override async ValueTask WritePreambleAsync(