From 8627365b48b33492ff63b51befc38a495867809b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 23 Sep 2020 13:04:17 +0300 Subject: [PATCH] app/vmselect/prometheus: code cleanup after 3ba507000ca78b35cbe2db8106131c8376450ba6 --- app/vmselect/prometheus/prometheus.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/vmselect/prometheus/prometheus.go b/app/vmselect/prometheus/prometheus.go index 77530ae1f2..c0195231c1 100644 --- a/app/vmselect/prometheus/prometheus.go +++ b/app/vmselect/prometheus/prometheus.go @@ -801,8 +801,7 @@ func QueryHandler(startTime time.Time, at *auth.Token, w http.ResponseWriter, r } if queryOffset > 0 { for i := range result { - rs := &result[i] - timestamps := rs.Timestamps + timestamps := result[i].Timestamps for j := range timestamps { timestamps[j] += queryOffset }