Use tokio::sync::mutex for Crawls

This commit is contained in:
2023-07-19 23:02:25 -04:00
parent d17f909312
commit e6a37703be
3 changed files with 13 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ use std::{
collections::HashMap,
net::SocketAddr,
path::Path,
sync::{Arc, Mutex},
sync::Arc,
};
use anyhow::Result;
@@ -17,6 +17,7 @@ use notify::Watcher;
use reqwest::Client;
use sqlx::postgres::PgPoolOptions;
use tokio::sync::watch::channel;
use tokio::sync::Mutex;
use tower::ServiceBuilder;
use tower_http::{services::ServeDir, trace::TraceLayer};
use tower_livereload::LiveReloadLayer;