From 625b6f1f3666badaf32dc5ba130cb2c5eddb1a68 Mon Sep 17 00:00:00 2001 From: chihe Date: Thu, 10 Jul 2025 19:51:22 +0800 Subject: [PATCH] fix(tools): close reader when read is completed close:#1000151163 Signed-off-by: chihe (cherry picked from commit c3b0722c7a86682fa8aaad454628de6130e50a11) --- tool/remotecache-benchmark/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/remotecache-benchmark/main.go b/tool/remotecache-benchmark/main.go index 633aa8e99..7b7dc6da6 100644 --- a/tool/remotecache-benchmark/main.go +++ b/tool/remotecache-benchmark/main.go @@ -577,6 +577,7 @@ func (t *BenchmarkTester) runStorageGetBenchmark(ctx context.Context, storage st result.Latencies = append(result.Latencies, latency) } fh.Close() + r.Close() } }(w) }