Skip to content

Commit 5528078

Browse files
committed
rust-analyzer mistake, WORK PLS
1 parent 02d2fdd commit 5528078

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use crate::logger::LOGGER;
1616
use colored::Colorize;
1717
use config::Config;
18+
use reqwest::Client;
1819
use std::env;
1920
use std::fs::{create_dir_all, File};
2021
use std::io::{Read, Write};
@@ -40,13 +41,11 @@ async fn main() {
4041
LOGGER.executing("Starting bot...");
4142
let teloxide_bot = Bot::new(token);
4243

43-
let db = Arc::new(connect_to_db().await);
44-
45-
db.init().await.expect("Database initialization failed");
44+
let client = Client::new();
4645

4746
// start bot
4847
LOGGER.success("Bot started successfully!");
49-
bot::start(teloxide_bot, Arc::clone(&db)).await;
48+
bot::start(teloxide_bot, Arc::new(client)).await;
5049
}
5150

5251
fn fetch_token() -> Result<String, Err<String>> {

0 commit comments

Comments
 (0)