From 3d84d4d6dcfb610bf0866718f13e8a3b689bcca0 Mon Sep 17 00:00:00 2001 From: komisan19 <18901496+komisan19@users.noreply.github.com> Date: Mon, 22 Apr 2024 19:03:19 +0900 Subject: [PATCH] fix Signed-off-by: komisan19 <18901496+komisan19@users.noreply.github.com> --- storage/remote/otlptranslator/prometheusremotewrite/helper.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/remote/otlptranslator/prometheusremotewrite/helper.go b/storage/remote/otlptranslator/prometheusremotewrite/helper.go index 85019e272d..da4ca07d80 100644 --- a/storage/remote/otlptranslator/prometheusremotewrite/helper.go +++ b/storage/remote/otlptranslator/prometheusremotewrite/helper.go @@ -442,8 +442,7 @@ func mostRecentTimestampInMetric(metric pmetric.Metric) pcommon.Timestamp { } func maxTimestamp(a, b pcommon.Timestamp) pcommon.Timestamp { - resultTimestamp := max(a, b) - return resultTimestamp + return max(a, b) } // addSingleSummaryDataPoint converts pt to len(QuantileValues) + 2 samples.