Skip to content

Commit

Permalink
refactor: changing refresh time to timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez committed May 24, 2024
1 parent 6e9dab2 commit 8540f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/algebra/refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ impl Handler<Refresh> for RefreshActor {
let refresh_after = refresh_before + Duration::minutes(msg.refresh_before_in_minutes());
tracing::info!(
"Searching for connections to refresh between {} and {}",
refresh_before,
refresh_after
refresh_before.timestamp(),
refresh_after.timestamp()
);

let secrets = self.secrets.clone();
Expand Down
3 changes: 1 addition & 2 deletions src/domain/state.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use std::sync::Arc;

use chrono::{DateTime, Utc};
use futures::lock::Mutex;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::sync::Arc;

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
Expand Down

0 comments on commit 8540f1d

Please sign in to comment.