Skip to content

Commit

Permalink
review(sami): move tx declaration close to where it's being used
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed Dec 25, 2024
1 parent f16b564 commit 6eb6fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm2src/coins/eth/web3_transport/websocket_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,12 @@ async fn send_request(
serialized_request = serde_json::to_string(&wrapper)?;
}

let mut tx = transport.controller_channel.tx.clone();

let (notification_sender, notification_receiver) = oneshot::channel::<Vec<u8>>();

event_handlers.on_outgoing_request(&request_bytes);

let mut tx = transport.controller_channel.tx.clone();
tx.send(ControllerMessage::Request(WsRequest {
request_id,
serialized_request,
Expand Down

0 comments on commit 6eb6fc3

Please sign in to comment.