Skip to content

Commit

Permalink
fix: channel doesn't need to be mutable in Inbound::listen_for_messages
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <[email protected]>
  • Loading branch information
ljedrz committed Jan 8, 2021
1 parent 5d4b997 commit aedaa67
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion network/src/inbound/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ impl Inbound {
pub async fn listen_for_messages(&self, channel: Channel) -> Result<(), NetworkError> {
let mut failure_count = 0u8;
let mut disconnect_from_peer = false;
let mut channel = channel;
let mut failure;
loop {
// Reset the failure indicator.
Expand Down

0 comments on commit aedaa67

Please sign in to comment.