summaryrefslogtreecommitdiff
path: root/src/helix/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/helix/mod.rs')
-rw-r--r--src/helix/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helix/mod.rs b/src/helix/mod.rs
index c0dd2a9..3ed4494 100644
--- a/src/helix/mod.rs
+++ b/src/helix/mod.rs
@@ -530,7 +530,7 @@ impl<T: DeserializeOwned + 'static + Send> Future for ApiRequest<T> {
let maybe_remaining =
response.headers()
- .get(&mut_limits.header_limit)
+ .get(&mut_limits.header_remaining)
.and_then(|x| x.to_str().ok())
.and_then(|x| x.parse::<i32>().ok());
@@ -540,7 +540,7 @@ impl<T: DeserializeOwned + 'static + Send> Future for ApiRequest<T> {
let maybe_reset =
response.headers()
- .get(&mut_limits.header_limit)
+ .get(&mut_limits.header_reset)
.and_then(|x| x.to_str().ok())
.and_then(|x| x.parse::<u32>().ok());