Skip to content

Commit

Permalink
Merge pull request #208 from azat-rust/fix-panic
Browse files Browse the repository at this point in the history
Fix possible panic in case broken protocol
  • Loading branch information
suharev7 authored Mar 31, 2024
2 parents afd8ce5 + 7d58004 commit e47ba33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl ClickhouseTransport {
}
}

let mut transport = h.unwrap();
let mut transport = h.ok_or(Error::Driver(DriverError::UnexpectedPacket))?;
transport.inconsistent = false;
Ok(transport)
}
Expand Down

0 comments on commit e47ba33

Please sign in to comment.