mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 16:55:08 +02:00
add trust-dns optional feature for actix-http and awc (#1969)
This commit is contained in:
@ -1277,8 +1277,10 @@ mod tests {
|
||||
async fn actor_handler(
|
||||
addr: Data<Addr<MyActor>>,
|
||||
) -> Result<impl Responder, Error> {
|
||||
// `?` operator tests "actors" feature flag on actix-http
|
||||
let res = addr.send(Num(1)).await?;
|
||||
let res = addr
|
||||
.send(Num(1))
|
||||
.await
|
||||
.map_err(crate::error::ErrorInternalServerError)?;
|
||||
|
||||
if res == 1 {
|
||||
Ok(HttpResponse::Ok())
|
||||
|
Reference in New Issue
Block a user