Skip to content

Commit b196121

Browse files
committed
src/bin/reachable.rs:quiet
1 parent b80f1c0 commit b196121

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/reachable.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ const URL: &str = "https://mempool.space/api/v1/prices";
1313
fn main() {
1414
let n = 1;
1515
{
16-
let start = Instant::now();
17-
let res = blocking(n);
16+
let _start = Instant::now();
17+
let _res = blocking(n);
1818
//println!("blocking {:?} {} bytes", start.elapsed(), res);
1919
}
2020
{
21-
let start = Instant::now();
22-
let rt = tokio::runtime::Runtime::new().unwrap();
23-
let res = rt.block_on(non_blocking(n));
21+
let _start = Instant::now();
22+
let _rt = tokio::runtime::Runtime::new().unwrap();
23+
let _res = _rt.block_on(non_blocking(n));
2424
//println!("async {:?} {} bytes", start.elapsed(), res);
2525
}
2626
}
@@ -68,7 +68,7 @@ async fn non_blocking(n: usize) -> usize {
6868
let mut tmp_string = String::new();
6969
res.read_to_string(&mut tmp_string).unwrap();
7070
// println!("{}", format!("{:?}", res));
71-
let tmp_u64 = tmp_string.parse::<u64>().unwrap_or(0);
71+
let _tmp_u64 = tmp_string.parse::<u64>().unwrap_or(0);
7272
// println!("{}", format!("{:?}", tmp_u64));
7373

7474
// TODO:impl gnostr-weeble_millis

0 commit comments

Comments
 (0)