1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00

better naming

This commit is contained in:
Nikolay Kim
2017-10-06 23:36:36 -07:00
parent a505be9321
commit ce4aea46c3
6 changed files with 28 additions and 28 deletions

View File

@ -25,9 +25,9 @@ impl Route for MyRoute {
{
if let Some(pl) = payload {
ctx.add_stream(pl);
HttpMessage::Stream(MyRoute{req: Some(req)})
Self::stream(MyRoute{req: Some(req)})
} else {
HttpMessage::Reply(req, httpcodes::HTTPOk)
Self::reply(req, httpcodes::HTTPOk)
}
}
}