Skip to content

Commit

Permalink
Reorder fields to match ordering in header
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Sep 19, 2024
1 parent 50bf05e commit d82f373
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/service/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl TransactionIdGenerator {
#[derive(Debug)]
pub(crate) struct Client<T> {
framed: Option<Framed<T, codec::tcp::ClientCodec>>,
unit_id: UnitId,
transaction_id_generator: TransactionIdGenerator,
unit_id: UnitId,
}

impl<T> Client<T>
Expand All @@ -53,12 +53,12 @@ where
{
pub(crate) fn new(transport: T, slave: Slave) -> Self {
let framed = Framed::new(transport, codec::tcp::ClientCodec::new());
let unit_id: UnitId = slave.into();
let transaction_id_generator = TransactionIdGenerator::new();
let unit_id: UnitId = slave.into();
Self {
framed: Some(framed),
unit_id,
transaction_id_generator,
unit_id,
}
}

Expand Down

0 comments on commit d82f373

Please sign in to comment.