mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
app/vmselect/prometheus: fix golangci-lint warning
This commit is contained in:
parent
4f16a964e3
commit
1e27420243
@ -180,8 +180,10 @@ func ExportCSVHandler(startTime time.Time, w http.ResponseWriter, r *http.Reques
|
||||
close(resultsCh)
|
||||
doneCh <- err
|
||||
}()
|
||||
// Consume all the data from resultsCh.
|
||||
for bb := range resultsCh {
|
||||
bw.Write(bb.B)
|
||||
// Do not check for error in bw.Write, since this error is checked inside netstorage.ExportBlocks above.
|
||||
_, _ = bw.Write(bb.B)
|
||||
quicktemplate.ReleaseByteBuffer(bb)
|
||||
}
|
||||
if err := bw.Flush(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user