diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2018-12-02 13:52:23 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2018-12-02 13:52:23 +0100 |
commit | f098fdc99de724f53f7f129b6a5bde50b73fd797 (patch) | |
tree | dab4645ee420a7d6373818c44c6a5f7439dc7726 /src/request_handler/mod.rs | |
parent | cf40041946626b105102e3dab2515d2ef2fb0506 (diff) | |
download | nginx-auth-totp-f098fdc99de724f53f7f129b6a5bde50b73fd797.tar.gz nginx-auth-totp-f098fdc99de724f53f7f129b6a5bde50b73fd797.zip |
Diffstat (limited to 'src/request_handler/mod.rs')
-rw-r--r-- | src/request_handler/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/request_handler/mod.rs b/src/request_handler/mod.rs index 6812bb4..ec62ba3 100644 --- a/src/request_handler/mod.rs +++ b/src/request_handler/mod.rs @@ -1,5 +1,6 @@ #![allow(warnings)] +use std::sync::atomic; use std::cell::Cell; use std::collections::HashMap; use std::io; @@ -121,7 +122,8 @@ fn info<'a>(request_handler: &RequestHandler, state: &super::ApplicationState, let valid_cookies: Vec<(String, String)> = state.cookie_store.reader .map_into(|k, v| (k.to_string(), ftime(v[0] as i64))); - views::info_debug(path_rest, valid_cookies) + views::info_debug(path_rest, valid_cookies, + state.request_slowdown.load(atomic::Ordering::Acquire)) } else { views::info(path_rest) }; |