File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ const URL: &str = "https://mempool.space/api/v1/prices";
1313fn 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
You can’t perform that action at this time.
0 commit comments