fix linting errors

Signed-off-by: Alice Wasko <aliceproxy@pm.me>
This commit is contained in:
Alice Wasko 2024-10-20 15:10:41 -07:00 committed by Flynn
parent 214320b2e4
commit 7f3c6a8868
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@ func V3ListenerToRdsListener(lnr *v3listener.Listener) (*v3listener.Listener, []
// Use xxhash64 because it's decently fast and cryptographic security isn't needed.
h := xxhash.New()
h.Write(filterChainMatch)
if _, err := h.Write(filterChainMatch); err != nil {
return nil, nil, fmt.Errorf("xxhash write error: %w", err)
}
matchKey := strconv.FormatUint(h.Sum64(), 16)
rc.Name = fmt.Sprintf("%s-routeconfig-%s-%d", l.Name, matchKey, matchKeyIndex[matchKey])