mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws: use unbounded local out message channel
This commit is contained in:
parent
3e3acd5adf
commit
2f5e023fd7
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ use futures_lite::StreamExt;
|
|||
use futures_rustls::server::TlsStream;
|
||||
use futures_rustls::TlsAcceptor;
|
||||
use glommio::channels::channel_mesh::{MeshBuilder, Partial, Role, Senders};
|
||||
use glommio::channels::local_channel::{new_bounded, LocalReceiver, LocalSender};
|
||||
use glommio::channels::local_channel::{LocalReceiver, LocalSender, new_unbounded};
|
||||
use glommio::channels::shared_channel::ConnectedReceiver;
|
||||
use glommio::net::{TcpListener, TcpStream};
|
||||
use glommio::timer::TimerActionRepeat;
|
||||
|
|
@ -96,7 +96,7 @@ pub async fn run_socket_worker(
|
|||
match stream {
|
||||
Ok(stream) => {
|
||||
let (out_message_sender, out_message_receiver) =
|
||||
new_bounded(config.request_workers + 1);
|
||||
new_unbounded();
|
||||
let out_message_sender = Rc::new(out_message_sender);
|
||||
|
||||
let key = RefCell::borrow_mut(&connection_slab).insert(ConnectionReference {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue