From f129f458643c13668d21b77d23ad0e0cca706d01 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Fri, 17 Apr 2020 16:54:07 -0600 Subject: [PATCH] add TODO --- src/bot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bot.rs b/src/bot.rs index 5255b0f..7dcdc3f 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -57,6 +57,7 @@ impl DiceBot { } pub async fn sync(&mut self) -> Result<(), Box> { + // TODO: handle http 429 let mut url = format!("https://{}/_matrix/client/r0/sync?access_token={}&timeout=3000", self.config.matrix.home_server, self.access_token); @@ -75,6 +76,7 @@ impl DiceBot { } pub async fn logout(self) -> Result<(), Box> { + // TODO: Write out next_batch self.client.post(&format!("https://{}/_matrix/client/r0/logout?access_token={}", self.config.matrix.home_server, self.access_token)) .body("{}") .send()