Skip to content

Commit

Permalink
Add report_too_early to PrepareError (#2541)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Jan 24, 2024
1 parent 83e31fe commit 3eeaf8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions messages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,7 @@ pub enum ReportShareError {
BatchSaturated = 6,
TaskExpired = 7,
UnrecognizedMessage = 8,
ReportTooEarly = 9,
}

impl Encode for ReportShareError {
Expand Down Expand Up @@ -3824,6 +3825,10 @@ mod tests {
(ReportShareError::HpkeUnknownConfigId, "03"),
(ReportShareError::HpkeDecryptError, "04"),
(ReportShareError::VdafPrepError, "05"),
(ReportShareError::BatchSaturated, "06"),
(ReportShareError::TaskExpired, "07"),
(ReportShareError::UnrecognizedMessage, "08"),
(ReportShareError::ReportTooEarly, "09"),
])
}

Expand Down

0 comments on commit 3eeaf8b

Please sign in to comment.