1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-27 23:45:53 +02:00

non-blocking processing for NamedFile

This commit is contained in:
Nikolay Kim
2018-03-07 17:40:13 -08:00
parent af8875f6ab
commit 42d2a29b1d
5 changed files with 108 additions and 22 deletions

View File

@@ -188,7 +188,7 @@ impl<S> HttpRequest<S> {
/// Default `CpuPool`
#[inline]
#[doc(hidden)]
pub fn cpu_pool(&mut self) -> &CpuPool {
pub fn cpu_pool(&self) -> &CpuPool {
self.router().expect("HttpRequest has to have Router instance")
.server_settings().cpu_pool()
}