Skip to content

Commit

Permalink
Update seniority update to include new field that is seniority timest…
Browse files Browse the repository at this point in the history
…amp in milliseconds (#768)

* Update seniority update to include new field that is seniority timestamp in milliseconds

* Move proto back to master
  • Loading branch information
bbalser authored Mar 20, 2024
1 parent 841e64e commit 97d8188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions mobile_verifier/src/heartbeats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ impl<'a> SeniorityUpdate<'a> {
}

impl SeniorityUpdate<'_> {
#[allow(deprecated)]
pub async fn write(&self, seniorities: &FileSinkClient) -> anyhow::Result<()> {
if let SeniorityUpdateAction::Insert {
new_seniority,
Expand All @@ -839,6 +840,7 @@ impl SeniorityUpdate<'_> {
key_type: Some(self.heartbeat.heartbeat.key().into()),
new_seniority_timestamp: new_seniority.timestamp() as u64,
reason: update_reason as i32,
new_seniority_timestamp_ms: new_seniority.timestamp_millis() as u64,
},
[],
)
Expand Down

0 comments on commit 97d8188

Please sign in to comment.