aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-21 15:18:46 -0700
committerZeyla Hellyer <[email protected]>2017-06-21 15:18:46 -0700
commit45868cd2cedd6bd418ea1c1d795a74c0ef6af975 (patch)
tree7f0a78158e24073606c0abed6c575e25e91c0b5e /src/http
parentExtract Discord close codes to constants (diff)
downloadserenity-45868cd2cedd6bd418ea1c1d795a74c0ef6af975.tar.xz
serenity-45868cd2cedd6bd418ea1c1d795a74c0ef6af975.zip
Update dependencies
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ratelimiting.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs
index dd56d6d..a674537 100644
--- a/src/http/ratelimiting.rs
+++ b/src/http/ratelimiting.rs
@@ -40,7 +40,7 @@
//! [Taken from]: https://discordapp.com/developers/docs/topics/rate-limits#rate-limits
#![allow(zero_ptr)]
-use chrono::UTC;
+use chrono::Utc;
use hyper::client::{RequestBuilder, Response};
use hyper::header::Headers;
use hyper::status::StatusCode;
@@ -439,7 +439,7 @@ impl RateLimit {
return;
}
- let current_time = UTC::now().timestamp();
+ let current_time = Utc::now().timestamp();
// The reset was in the past, so we're probably good.
if current_time > self.reset {