Commit b982076e authored by shaw's avatar shaw
Browse files

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
parent 7060596a
...@@ -536,6 +536,7 @@ func TestAPIContracts(t *testing.T) { ...@@ -536,6 +536,7 @@ func TestAPIContracts(t *testing.T) {
"max_claude_code_version": "", "max_claude_code_version": "",
"allow_ungrouped_key_scheduling": false, "allow_ungrouped_key_scheduling": false,
"backend_mode_enabled": false, "backend_mode_enabled": false,
"enable_cch_signing": false,
"enable_fingerprint_unification": true, "enable_fingerprint_unification": true,
"enable_metadata_passthrough": false, "enable_metadata_passthrough": false,
"custom_menu_items": [], "custom_menu_items": [],
......
...@@ -68,6 +68,6 @@ func signBillingHeaderCCH(body []byte) []byte { ...@@ -68,6 +68,6 @@ func signBillingHeaderCCH(body []byte) []byte {
// xxHash64Seeded computes xxHash64 of data with a custom seed. // xxHash64Seeded computes xxHash64 of data with a custom seed.
func xxHash64Seeded(data []byte, seed uint64) uint64 { func xxHash64Seeded(data []byte, seed uint64) uint64 {
d := xxhash.NewWithSeed(seed) d := xxhash.NewWithSeed(seed)
d.Write(data) _, _ = d.Write(data)
return d.Sum64() return d.Sum64()
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment