fix application bug
This commit is contained in:
5
vendor/github.com/mholt/caddy/telemetry/collection.go
generated
vendored
5
vendor/github.com/mholt/caddy/telemetry/collection.go
generated
vendored
@@ -283,7 +283,10 @@ func atomicAdd(key string, amount int) {
|
||||
// Do not use this for cryptographic purposes.
|
||||
func FastHash(input []byte) string {
|
||||
h := fnv.New32a()
|
||||
h.Write(input)
|
||||
if _, err := h.Write(input); err != nil {
|
||||
log.Println("[ERROR] failed to write bytes: ", err)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%x", h.Sum32())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user