mirror of https://github.com/fafhrd91/actix-web
remove comment about actors feature
This commit is contained in:
parent
040fe068f5
commit
50396a512e
|
@ -1277,11 +1277,10 @@ mod tests {
|
||||||
async fn actor_handler(
|
async fn actor_handler(
|
||||||
addr: Data<Addr<MyActor>>,
|
addr: Data<Addr<MyActor>>,
|
||||||
) -> Result<impl Responder, Error> {
|
) -> Result<impl Responder, Error> {
|
||||||
// `?` operator tests "actors" feature flag on actix-http
|
|
||||||
let res = addr
|
let res = addr
|
||||||
.send(Num(1))
|
.send(Num(1))
|
||||||
.await
|
.await
|
||||||
.map_err(|e| crate::error::ErrorInternalServerError(e))?;
|
.map_err(crate::error::ErrorInternalServerError)?;
|
||||||
|
|
||||||
if res == 1 {
|
if res == 1 {
|
||||||
Ok(HttpResponse::Ok())
|
Ok(HttpResponse::Ok())
|
||||||
|
|
Loading…
Reference in New Issue