aboutsummaryrefslogtreecommitdiff
path: root/src/http/ratelimiting.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-08-24 08:24:30 -0700
committerZeyla Hellyer <[email protected]>2018-08-24 08:24:30 -0700
commit6157f61600d656219491f21f533f63c8f362bd1b (patch)
treecf1c2992436ec4a5d7d168d067ab4279b4b8ae9c /src/http/ratelimiting.rs
parentProperly link to User in Game docs (diff)
downloadserenity-6157f61600d656219491f21f533f63c8f362bd1b.tar.xz
serenity-6157f61600d656219491f21f533f63c8f362bd1b.zip
Move low-level http functions to a raw module
Move the low-level http functions that work with serde maps directly into an `http::raw` module, and re-export them from the `http` module for backwards compatibility purposes.
Diffstat (limited to 'src/http/ratelimiting.rs')
-rw-r--r--src/http/ratelimiting.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs
index 298ca6f..5edb6ee 100644
--- a/src/http/ratelimiting.rs
+++ b/src/http/ratelimiting.rs
@@ -142,7 +142,7 @@ pub(super) fn perform(req: Request) -> Result<Response> {
let mut lock = bucket.lock();
lock.pre_hook(&route);
- let response = super::retry(&req)?;
+ let response = super::raw::retry(&req)?;
// Check if an offset has been calculated yet to determine the time
// difference from Discord can the client.