mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
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:
parent
bab0f6d6a3
commit
625b6f1f36
@ -577,6 +577,7 @@ func (t *BenchmarkTester) runStorageGetBenchmark(ctx context.Context, storage st
|
||||
result.Latencies = append(result.Latencies, latency)
|
||||
}
|
||||
fh.Close()
|
||||
r.Close()
|
||||
}
|
||||
}(w)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user