mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-16 11:13:47 +00:00
notify: hex encode deduplication hash
This commit is contained in:
parent
fd4fd115cb
commit
49ceb8cc99
@ -987,5 +987,5 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
|
|||||||
func hashKey(s string) string {
|
func hashKey(s string) string {
|
||||||
h := sha256.New()
|
h := sha256.New()
|
||||||
h.Write([]byte(s))
|
h.Write([]byte(s))
|
||||||
return string(h.Sum(nil))
|
return fmt.Sprintf("%x", h.Sum(nil))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user