mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-30 00:14:58 +02:00
migrate to -utils beta 4 (#2127)
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
use std::future::Future;
|
||||
use std::time::Instant;
|
||||
use std::{future::Future, time::Instant};
|
||||
|
||||
use actix_http::Response;
|
||||
use actix_utils::future::{ready, Ready};
|
||||
use actix_web::http::StatusCode;
|
||||
use actix_web::test::TestRequest;
|
||||
use actix_web::{error, Error, HttpRequest, HttpResponse, Responder};
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
use futures_util::future::{ready, Either, Ready};
|
||||
use futures_util::future::{join_all, Either};
|
||||
|
||||
// responder simulate the old responder trait.
|
||||
trait FutureResponder {
|
||||
@ -79,7 +79,7 @@ fn future_responder(c: &mut Criterion) {
|
||||
.await
|
||||
});
|
||||
|
||||
let futs = futures_util::future::join_all(futs);
|
||||
let futs = join_all(futs);
|
||||
|
||||
let start = Instant::now();
|
||||
|
||||
|
Reference in New Issue
Block a user