Skip to content

Commit

Permalink
try: use default versios (hardcoded 17)
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Jul 17, 2023
1 parent 1cd100f commit 8b96bae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/fluvio-smartmodule/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl TryFrom<Vec<Record>> for SmartModuleInput {
fn try_from(records: Vec<Record>) -> Result<Self, Self::Error> {
let mut raw_bytes = Vec::new();

records.encode(&mut raw_bytes, SMARTMODULE_LTA_VERSION)?;
records.encode(&mut raw_bytes, 17)?;
Ok(SmartModuleInput {
raw_bytes,
..Default::default()
Expand All @@ -149,10 +149,7 @@ impl TryInto<Vec<Record>> for SmartModuleInput {
type Error = std::io::Error;

fn try_into(mut self) -> Result<Vec<Record>, Self::Error> {
Decoder::decode_from(
&mut Cursor::new(&mut self.raw_bytes),
SMARTMODULE_LTA_VERSION,
)
Decoder::decode_from(&mut Cursor::new(&mut self.raw_bytes), 17)
}
}

Expand Down

0 comments on commit 8b96bae

Please sign in to comment.