1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

optimize Request handling

This commit is contained in:
Nikolay Kim
2018-07-04 22:52:49 +06:00
parent f559f23e1c
commit 5d79114239
7 changed files with 134 additions and 79 deletions

View File

@@ -212,8 +212,8 @@ impl<H> WorkerSettings<H> {
self.bytes.release_bytes(bytes)
}
pub fn get_request_context(&self) -> Request {
self.messages.get()
pub fn get_request(&self) -> Request {
RequestPool::get(self.messages)
}
pub fn add_channel(&self) {