forked from projectmoon/tenebrous-dicebot
add TODO
This commit is contained in:
parent
b30eec72b3
commit
f129f45864
|
@ -57,6 +57,7 @@ impl DiceBot {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn sync(&mut self) -> Result<(), Box<dyn std::error::Error>> {
|
pub async fn sync(&mut self) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
// TODO: handle http 429
|
||||||
let mut url = format!("https://{}/_matrix/client/r0/sync?access_token={}&timeout=3000",
|
let mut url = format!("https://{}/_matrix/client/r0/sync?access_token={}&timeout=3000",
|
||||||
self.config.matrix.home_server,
|
self.config.matrix.home_server,
|
||||||
self.access_token);
|
self.access_token);
|
||||||
|
@ -75,6 +76,7 @@ impl DiceBot {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn logout(self) -> Result<(), Box<dyn std::error::Error>> {
|
pub async fn logout(self) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
// TODO: Write out next_batch
|
||||||
self.client.post(&format!("https://{}/_matrix/client/r0/logout?access_token={}", self.config.matrix.home_server, self.access_token))
|
self.client.post(&format!("https://{}/_matrix/client/r0/logout?access_token={}", self.config.matrix.home_server, self.access_token))
|
||||||
.body("{}")
|
.body("{}")
|
||||||
.send()
|
.send()
|
||||||
|
|
Loading…
Reference in New Issue