Skip to content

Commit

Permalink
Add report_too_early to PrepareError
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Jan 23, 2024
1 parent 09038df commit 6772a2f
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 @@ -2327,6 +2327,7 @@ pub enum PrepareError {
BatchSaturated = 6,
TaskExpired = 7,
InvalidMessage = 8,
ReportTooEarly = 9,
}

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

Expand Down

0 comments on commit 6772a2f

Please sign in to comment.