Skip to content

Commit e7b4b4a

Browse files
committed
chore: going back to old listener
1 parent a0430db commit e7b4b4a

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

src/main.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,12 @@ async fn main() -> Result<(), Box<dyn Error>> {
8484

8585
let addr = ([127, 0, 0, 1], port.unwrap_or(8445)).into(); // port 8445
8686

87-
// If everything is fine
88-
// let listener = webhooks::axum(
89-
// bot,
90-
// webhooks::Options::new(addr, config.domain.parse().unwrap()),
91-
// )
92-
// .await
93-
// .expect("Couldn't setup webhook");
94-
95-
// If telegram's DNS cache is fucked up
96-
let listener = webhooks::axum_no_setup(webhooks::Options::new(
97-
addr,
98-
config.domain.parse().unwrap(),
99-
))
100-
.0;
87+
let listener = webhooks::axum(
88+
bot,
89+
webhooks::Options::new(addr, config.domain.parse().unwrap()),
90+
)
91+
.await
92+
.expect("Couldn't setup webhook");
10193

10294
dispatcher
10395
.dispatch_with_listener(

0 commit comments

Comments
 (0)