Skip to content

Commit

Permalink
sync: Drop rules_* fields in postflight to uint32
Browse files Browse the repository at this point in the history
This lets the protobuf json serializer to send the values as ints (like NSJSONSerialization did) instead of strings. This will cause problems if someone has 4B rules but that's probably a sign of bigger problems
  • Loading branch information
russellhancox committed Aug 12, 2024
1 parent c7766d5 commit 1ee9e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/santasyncservice/syncv1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ message RuleDownloadResponse {
}

message PostflightRequest {
uint64 rules_received = 1 [json_name="rules_received"];
uint64 rules_processed = 2 [json_name="rules_processed"];
uint32 rules_received = 1 [json_name="rules_received"];
uint32 rules_processed = 2 [json_name="rules_processed"];
// The UUID of the machine that is sending this postflight.
string machine_id = 3 [json_name="machine_id"];
}
Expand Down

0 comments on commit 1ee9e77

Please sign in to comment.