Skip to content

Commit

Permalink
src/api.rs:apply cargo +nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Oct 25, 2024
1 parent e66cbc7 commit f742ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use rand::Rng;
pub const URL: &[&str] = &[
"https://mempool.space/api",
"https://bitcoin.gob.sv/api",
"https://mempool.sweetsats.io/api",
"https://mempool.sweetsats.io/api",
"http:://localhost", //TODO support local instance
];

Expand Down Expand Up @@ -95,7 +95,7 @@ pub fn blocking(api: &String) -> Result<&str, ascii::AsciiChar> {
//print!("api={:?}", api);
}
let call = format!("{}/{}", URL[rand::thread_rng().gen_range(0..2)], api);
//println!("{}", call.clone());
//println!("{}", call.clone());
let mut body = ureq::get(&call)
.call()
.expect("blocking(api: &String) GET {URL[0..2]}/{api} OR GET {URL[0..2]}/v1/{api}")
Expand Down

0 comments on commit f742ada

Please sign in to comment.