Skip to content

Commit

Permalink
fix: return correct error type
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee authored and bochaco committed Dec 12, 2022
1 parent 805b2cf commit 38fb7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn listen_on_uni_streams(
Ok(None) => return,
Ok(Some(msg)) => match msg {
WireMsg::UserMsg(msg) => Ok(msg),
msg => Err(RecvError::UnexpectedMsgReceived(msg.to_string())),
_ => Err(RecvError::UnexpectedMsgReceived(msg.to_string())),
},
Err(err) => Err(err),
};
Expand Down

0 comments on commit 38fb7dd

Please sign in to comment.