Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
acevedosharp committed Nov 18, 2024
1 parent 254074c commit aa1b41b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions go/internal/feast/utils/key_utils.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package utils

import (
"crypto/sha1"
"encoding/hex"
)

func HashSerializedEntityKey(serializedEntityKey *[]byte) string {
if serializedEntityKey == nil {
return ""
}
h := sha1.New()
h.Write(*serializedEntityKey)
return hex.EncodeToString(h.Sum(nil))
}

0 comments on commit aa1b41b

Please sign in to comment.