mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Fix value vs. pointer receivers
This commit is contained in:
parent
3d99d4b6c0
commit
439a6988a4
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ func NewDuration(d time.Duration) *Duration {
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalYAML implements yaml.Marshaler interface.
|
// MarshalYAML implements yaml.Marshaler interface.
|
||||||
func (pd Duration) MarshalYAML() (interface{}, error) {
|
func (pd *Duration) MarshalYAML() (interface{}, error) {
|
||||||
return pd.D.String(), nil
|
return pd.D.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue