use Notify instead of Sender
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user