Skip to content

Commit

Permalink
remove unnecessary Arc<
Browse files Browse the repository at this point in the history
The inners are already `Arc<`ed
  • Loading branch information
mariocynicys committed Jun 17, 2024
1 parent 74bb53c commit 3798a29
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mm2src/coins/eth/web3_transport/websocket_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ pub struct WebsocketTransport {
node: WebsocketTransportNode,
event_handlers: Vec<RpcTransportEventHandlerShared>,
pub(crate) gui_auth_validation_generator: Option<GuiAuthValidationGenerator>,
controller_channel: Arc<ControllerChannel>,
controller_channel: ControllerChannel,
connection_guard: Arc<AsyncMutex<()>>,
}

#[derive(Debug)]
#[derive(Clone, Debug)]
struct ControllerChannel {
tx: Arc<AsyncMutex<UnboundedSender<ControllerMessage>>>,
rx: Arc<AsyncMutex<UnboundedReceiver<ControllerMessage>>>,
Expand Down Expand Up @@ -90,8 +90,7 @@ impl WebsocketTransport {
controller_channel: ControllerChannel {
tx: Arc::new(AsyncMutex::new(req_tx)),
rx: Arc::new(AsyncMutex::new(req_rx)),
}
.into(),
},
connection_guard: Arc::new(AsyncMutex::new(())),
gui_auth_validation_generator: None,
last_request_failed: Arc::new(AtomicBool::new(false)),
Expand Down

0 comments on commit 3798a29

Please sign in to comment.