fix: resolve errcheck lint and add missing enable_cch_signing to test

- Suppress errcheck for xxhash Digest.Write (never returns error)
- Add enable_cch_signing field to settings API contract test
This commit is contained in:
shaw
2026-04-08 16:23:02 +08:00
parent 7060596a30
commit b982076e52
2 changed files with 2 additions and 1 deletions

View File

@@ -68,6 +68,6 @@ func signBillingHeaderCCH(body []byte) []byte {
// xxHash64Seeded computes xxHash64 of data with a custom seed.
func xxHash64Seeded(data []byte, seed uint64) uint64 {
d := xxhash.NewWithSeed(seed)
d.Write(data)
_, _ = d.Write(data)
return d.Sum64()
}