use Notify instead of Sender

This commit is contained in:
Danil Platonov
2026-06-02 00:49:00 -07:00
parent 304cf424ed
commit 732f3ae10a
2 changed files with 9 additions and 6 deletions

View File

@@ -1,11 +1,12 @@
use bytes::{buf::Reader, Bytes};
use std::sync::{Arc, Condvar, Mutex};
use tokio::sync::Notify;
use warp::http;
pub struct HttpListener {
pub incoming: std::sync::mpsc::Receiver<HttpRequest>,
pub warp_shutdown: tokio::sync::mpsc::Sender<()>,
pub warp_shutdown: Arc<Notify>,
}
pub struct HttpRequest {