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:
@@ -536,6 +536,7 @@ func TestAPIContracts(t *testing.T) {
|
||||
"max_claude_code_version": "",
|
||||
"allow_ungrouped_key_scheduling": false,
|
||||
"backend_mode_enabled": false,
|
||||
"enable_cch_signing": false,
|
||||
"enable_fingerprint_unification": true,
|
||||
"enable_metadata_passthrough": false,
|
||||
"custom_menu_items": [],
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user