remove use of time in recursor and client

This commit is contained in:
Zhang 2023-04-04 19:23:14 +08:00 committed by Benjamin Fry
parent 1a3c3466f1
commit c551ebb45a
4 changed files with 1 additions and 7 deletions

2
Cargo.lock generated
View File

@ -1835,7 +1835,6 @@ dependencies = [
"rustls",
"serde",
"thiserror",
"time",
"tokio",
"tracing",
"tracing-subscriber",
@ -1938,7 +1937,6 @@ dependencies = [
"parking_lot",
"serde",
"thiserror",
"time",
"tokio",
"toml",
"tracing",

View File

@ -82,7 +82,6 @@ ring = { workspace = true, optional = true, features = ["std"]}
rustls = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"], optional = true }
thiserror.workspace = true
time.workspace = true
tracing.workspace = true
tokio = { workspace = true, features = ["rt"] }
trust-dns-proto = { workspace = true, features = ["text-parsing"] }

View File

@ -152,8 +152,6 @@
//! use std::net::Ipv4Addr;
//! use std::str::FromStr;
//!
//! use time::Duration;
//!
//! # #[cfg(feature = "openssl")]
//! use openssl::rsa::Rsa;
//! use trust_dns_client::client::{Client, SyncClient};
@ -202,7 +200,7 @@
//! // Now we can send updates... let's create a new Record
//! let mut record = Record::with(Name::from_str("new.example.com").unwrap(),
//! RecordType::A,
//! Duration::minutes(5).whole_seconds() as u32);
//! 300);
//! record.set_data(Some(RData::A(A::new(100, 10, 100, 10))));
//!
//! // the server must be authoritative for this zone

View File

@ -84,7 +84,6 @@ lru-cache.workspace = true
parking_lot.workspace = true
serde = { workspace = true, features = ["derive"], optional = true }
thiserror.workspace = true
time.workspace = true
tracing.workspace = true
tokio = { workspace = true, features = ["net"] }
toml.workspace = true