mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_ws, aquatic_ws_load_test: cargo fmt
This commit is contained in:
parent
d922e5e680
commit
78d29770f3
3 changed files with 16 additions and 12 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::{LocalReceiver, LocalSender, new_unbounded};
|
||||
use glommio::channels::local_channel::{new_unbounded, LocalReceiver, LocalSender};
|
||||
use glommio::channels::shared_channel::ConnectedReceiver;
|
||||
use glommio::net::{TcpListener, TcpStream};
|
||||
use glommio::timer::TimerActionRepeat;
|
||||
|
|
@ -95,8 +95,7 @@ pub async fn run_socket_worker(
|
|||
while let Some(stream) = incoming.next().await {
|
||||
match stream {
|
||||
Ok(stream) => {
|
||||
let (out_message_sender, out_message_receiver) =
|
||||
new_unbounded();
|
||||
let (out_message_sender, out_message_receiver) = new_unbounded();
|
||||
let out_message_sender = Rc::new(out_message_sender);
|
||||
|
||||
let key = RefCell::borrow_mut(&connection_slab).insert(ConnectionReference {
|
||||
|
|
@ -160,7 +159,7 @@ async fn receive_out_messages(
|
|||
.get(channel_out_message.0.connection_id.0)
|
||||
{
|
||||
match reference.out_message_sender.try_send(channel_out_message) {
|
||||
Ok(()) | Err(GlommioError::Closed(_)) => {},
|
||||
Ok(()) | Err(GlommioError::Closed(_)) => {}
|
||||
Err(err) => {
|
||||
::log::error!(
|
||||
"Couldn't send out_message from shared channel to local receiver: {:?}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue