From 439a6988a443a0e28d0599f867174b29f12d8dc4 Mon Sep 17 00:00:00 2001 From: Dima Lazerka Date: Mon, 14 Aug 2023 20:08:07 -0700 Subject: [PATCH] Fix value vs. pointer receivers --- lib/promutils/duration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/promutils/duration.go b/lib/promutils/duration.go index 2fc57c52e..441bd2011 100644 --- a/lib/promutils/duration.go +++ b/lib/promutils/duration.go @@ -19,7 +19,7 @@ func NewDuration(d time.Duration) *Duration { } // MarshalYAML implements yaml.Marshaler interface. -func (pd Duration) MarshalYAML() (interface{}, error) { +func (pd *Duration) MarshalYAML() (interface{}, error) { return pd.D.String(), nil }