Skip to content

Commit

Permalink
rm debug data
Browse files Browse the repository at this point in the history
  • Loading branch information
cleonyc committed Sep 2, 2022
1 parent aaed570 commit 6fae4bf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ impl SummaryWebhook {
pub async fn update(&mut self, database: Database) -> anyhow::Result<()> {
let gen_messages = gen_summmary_messages(database.clone());
if gen_messages.len() != self.message_ids.len() {
println!("a");
for index in self.message_ids.len()..gen_messages.len() {
println!("i: {index}");
let msg = &gen_messages[index];
let req = Request::post(&format!("{}?wait=true", self.url.trim_end_matches("/")))
.header("Content-Type", "application/json")
Expand All @@ -63,9 +61,6 @@ impl SummaryWebhook {
.expect("apparently the id from the response is not a number (WTF??)");
self.message_ids.push(id);
}
} else {

println!("B");
}
for (index, msg) in gen_summmary_messages(database.clone()).iter().enumerate() {
self.client
Expand Down

0 comments on commit 6fae4bf

Please sign in to comment.