Skip to content

Commit

Permalink
Remove unnecessary clone of channel
Browse files Browse the repository at this point in the history
  • Loading branch information
elomatreb committed Nov 6, 2020
1 parent 179a74d commit effdf45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ impl Client {
async fn do_send(&self, commands: RawCommandList) -> Result<RawResponse, CommandError> {
let (tx, rx) = oneshot::channel();

let mut commands_sender = self.commands_sender.clone();
commands_sender.send((commands, tx)).await?;
self.commands_sender.send((commands, tx)).await?;

rx.await?
}
Expand Down

0 comments on commit effdf45

Please sign in to comment.