fix(tools): close reader when read is completed

close:#1000151163

Signed-off-by: chihe <chihe@oppo.com>
(cherry picked from commit c3b0722c7a)
This commit is contained in:
chihe 2025-07-10 19:51:22 +08:00
parent bab0f6d6a3
commit 625b6f1f36

View File

@ -577,6 +577,7 @@ func (t *BenchmarkTester) runStorageGetBenchmark(ctx context.Context, storage st
result.Latencies = append(result.Latencies, latency)
}
fh.Close()
r.Close()
}
}(w)
}