Skip to content

Commit

Permalink
refactor!: ease transition of API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee authored and joshuef committed Jan 20, 2023
1 parent 0032cf2 commit e5ab6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ impl RecvStream {
}

/// Parse the message sent by the peer over this stream.
pub async fn read(&mut self) -> Result<WireMsg, RecvError> {
self.read_wire_msg().await
pub async fn read(&mut self) -> Result<UsrMsgBytes, RecvError> {
self.read_wire_msg().await.map(|v| v.0)
}

pub(crate) async fn read_wire_msg(&mut self) -> Result<WireMsg, RecvError> {
Expand Down

0 comments on commit e5ab6df

Please sign in to comment.