Skip to content

Commit

Permalink
Error handling change
Browse files Browse the repository at this point in the history
  • Loading branch information
nloadholtes committed Nov 2, 2022
1 parent 036e181 commit ab1901b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/gossipsub/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl std::error::Error for ValidationError {}

impl From<std::io::Error> for GossipsubHandlerError {
fn from(error: std::io::Error) -> GossipsubHandlerError {
GossipsubHandlerError::Codec(prost_codec::Error::Io(error))
GossipsubHandlerError::Codec(prost_codec::Error::from(error))
}
}

Expand Down

0 comments on commit ab1901b

Please sign in to comment.