Fix linting error

Signed-off-by: Raphael Silva <rapphil@gmail.com>
This commit is contained in:
Raphael Silva 2024-07-04 23:24:38 +00:00
parent 2cf34e4644
commit ee70c9d145

View file

@ -16,6 +16,7 @@ package v1
import (
"context"
"crypto/sha1"
"encoding/hex"
"errors"
"fmt"
"math"
@ -1595,7 +1596,7 @@ func parseListRulesPaginationRequest(r *http.Request) (*listRulesPaginationReque
func getRuleGroupNextToken(file, group string) string {
h := sha1.New()
h.Write([]byte(file + ";" + group))
return fmt.Sprintf("%x", h.Sum(nil))
return hex.EncodeToString(h.Sum(nil))
}
type prometheusConfig struct {