Skip to content

Commit

Permalink
chore: Remove log dependency
Browse files Browse the repository at this point in the history
Only used for a single log, and that one is not really useful...

Redundant dependency
  • Loading branch information
theduke committed Oct 28, 2023
1 parent 36570fd commit e9763d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ serde = "1.0.79"
serde_derive = "1.0.79"
serde_json = "1.0.32"
url = "2.1.0"
log = "0.4.5"
futures = "0.3.4"
tokio = { version = "1.0.1", default-features = false, features = ["sync", "time"] }
serde_path_to_error = "0.1.8"
Expand Down
3 changes: 0 additions & 3 deletions src/sync_client.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use super::*;
use std::iter::Extend;

use log::trace;
use reqwest::{blocking::Client as HttpClient, header, StatusCode, Url};
use serde::de::DeserializeOwned;

Expand Down Expand Up @@ -59,8 +58,6 @@ impl SyncClient {
}

fn get<T: DeserializeOwned>(&self, url: Url) -> Result<T, Error> {
trace!("GET {}", url);

let mut lock = self.last_request_time.lock().unwrap();
if let Some(last_request_time) = lock.take() {
let now = std::time::Instant::now();
Expand Down

0 comments on commit e9763d4

Please sign in to comment.