mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
app/vmselect/prometheus: fix golangci-lint warning
This commit is contained in:
parent
0867dea5fc
commit
d884ab13dc
1 changed files with 3 additions and 1 deletions
|
@ -193,8 +193,10 @@ func ExportCSVHandler(startTime time.Time, at *auth.Token, w http.ResponseWriter
|
||||||
close(resultsCh)
|
close(resultsCh)
|
||||||
doneCh <- err
|
doneCh <- err
|
||||||
}()
|
}()
|
||||||
|
// Consume all the data from resultsCh.
|
||||||
for bb := range 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)
|
quicktemplate.ReleaseByteBuffer(bb)
|
||||||
}
|
}
|
||||||
if err := bw.Flush(); err != nil {
|
if err := bw.Flush(); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue