Skip to content

Commit

Permalink
refact: use tokio instant instead of std::time
Browse files Browse the repository at this point in the history
  • Loading branch information
justRkive committed Dec 3, 2024
1 parent b80f267 commit 7bd403a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/async_resolver/resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use super::resolver_error::ResolverError;
use super::server_info::ServerInfo;
use super::state_block::StateBlock;
use std::sync::{Mutex,Arc};
use std::time::Instant;
use tokio::time::Instant;
use crate::client::client_connection::ConnectionProtocol;
use crate::async_resolver::config::ResolverConfig;

Expand Down Expand Up @@ -61,7 +61,7 @@ impl Resolution {
let config: &ResolverConfig = &self.config;
let max_interval: u64 = config.get_max_retry_interval_seconds();
let initial_rto = 1.0;
let mut rto = initial_rto;
let mut rto: f64 = initial_rto;
let mut srtt = rto;
let mut rttvar = rto/2.0;

Expand Down

0 comments on commit 7bd403a

Please sign in to comment.