mirror of
https://github.com/Noratrieb/ice-104649.git
synced 2026-01-14 12:35:02 +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;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
async fn main() -> Result<(), Error> {
|
||||
let client = reqwest::Client::builder()
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
let urls = vec![String::from("http://example.com"); REQUEST_COUNT];
|
||||
let urls = vec![String::from("http://example.com")];
|
||||
|
||||
// Concurrent Requests
|
||||
let bodies = stream::iter(urls)
|
||||
|
|
@ -37,7 +37,4 @@ async fn main() -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Error;
|
||||
|
||||
type Result<T, E = Error> = ::core::result::Result<T, E>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue