Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluis committed Jul 7, 2021
1 parent 04e7228 commit 6e85219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl Message {
Message::MerkleBlock(p) => write_with_payload(writer, MERKLEBLOCK, p, magic),
Message::NotFound(p) => write_with_payload(writer, NOTFOUND, p, magic),
Message::Inv(p) => write_with_payload(writer, INV, p, magic),
Message::Other(s) => Err(io::Error::new(io::ErrorKind::InvalidData, s.as_ref())),
Message::Other(s) => Err(io::Error::new(io::ErrorKind::InvalidData, s.as_str())),
Message::Partial(_) => Err(io::Error::new(
io::ErrorKind::InvalidData,
"Cannot write partial message".to_string(),
Expand Down

0 comments on commit 6e85219

Please sign in to comment.