mirror of
https://github.com/Noratrieb/ice-104649.git
synced 2026-01-14 20:45:01 +01:00
delete type alias
This commit is contained in:
parent
06f9546606
commit
206a6628ea
1 changed files with 2 additions and 5 deletions
|
|
@ -5,12 +5,12 @@ const REQUEST_COUNT: usize = 10;
|
||||||
const CONCURRENT_REQUESTS: usize = 1_000;
|
const CONCURRENT_REQUESTS: usize = 1_000;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<(), Error> {
|
||||||
let client = reqwest::Client::builder()
|
let client = reqwest::Client::builder()
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let urls = vec![String::from("http://example.com"); REQUEST_COUNT];
|
let urls = vec![String::from("http://example.com")];
|
||||||
|
|
||||||
// Concurrent Requests
|
// Concurrent Requests
|
||||||
let bodies = stream::iter(urls)
|
let bodies = stream::iter(urls)
|
||||||
|
|
@ -37,7 +37,4 @@ async fn main() -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
struct Error;
|
struct Error;
|
||||||
|
|
||||||
type Result<T, E = Error> = ::core::result::Result<T, E>;
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue