mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
refactor: simpler mtask var
This commit is contained in:
@@ -23,13 +23,13 @@ use elefren::{prelude::*, status_builder::StatusBuilder};
|
||||
use log::{debug, info};
|
||||
use rusqlite::Connection;
|
||||
use std::sync::Arc;
|
||||
use tokio::{spawn, sync::Mutex, task::JoinHandle};
|
||||
use tokio::{spawn, sync::Mutex};
|
||||
|
||||
/// This is where the magic happens
|
||||
#[tokio::main]
|
||||
pub async fn run(config: Config) {
|
||||
// create the task vector for handling multiple accounts
|
||||
let mut mtask: Vec<JoinHandle<()>> = vec![];
|
||||
let mut mtask = vec![];
|
||||
|
||||
// open the SQLite connection
|
||||
let conn = Arc::new(Mutex::new(
|
||||
|
Reference in New Issue
Block a user