Skip to content

Commit

Permalink
refactor: rename chunk_id->message_id
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-starkware committed Sep 22, 2024
1 parent 7c12924 commit 3e133fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/papyrus_protobuf/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl ConsensusMessage {
pub struct StreamMessage<T: Into<Vec<u8>> + TryFrom<Vec<u8>, Error = ProtobufConversionError>> {
pub message: T,
pub stream_id: u64,
pub chunk_id: u64,
pub message_id: u64,
pub fin: bool,
}

Expand Down
4 changes: 2 additions & 2 deletions crates/papyrus_protobuf/src/converters/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<T: Into<Vec<u8>> + TryFrom<Vec<u8>, Error = ProtobufConversionError>>
Ok(Self {
message: T::try_from(value.message)?,
stream_id: value.stream_id,
chunk_id: value.chunk_id,
message_id: value.message_id,
fin: value.fin,
})
}
Expand All @@ -132,7 +132,7 @@ impl<T: Into<Vec<u8>> + TryFrom<Vec<u8>, Error = ProtobufConversionError>> From<
Self {
message: value.message.into(),
stream_id: value.stream_id,
chunk_id: value.chunk_id,
message_id: value.message_id,
fin: value.fin,
}
}
Expand Down

0 comments on commit 3e133fd

Please sign in to comment.