Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesFoundation committed Aug 28, 2024
1 parent 00c3cfd commit 1f68bd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ jobs:
# requires a nightly Rust compiler for defining a global allocator and
# the exception handler.
#
# So, disable it for now.
- run: cargo check --no-default-features --workspace --exclude foundation-ffi --exclude stratum-v1
- run: cargo check --all-features
# The stratum-v1 crate won't compile with all features enabled because
# if has 2 mutualy exclusive features = defmt and log.
#
# So, disable them for now.
- run: cargo check --no-default-features --workspace --exclude foundation-ffi
- run: cargo check --all-features --exclude stratum-v1

is-the-code-formatted:
name: Is the code formatted?
Expand Down
9 changes: 3 additions & 6 deletions stratum-v1/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<C: Read + ReadReady + Write, const RX_BUF_SIZE: usize, const TX_BUF_SIZE: u
"Received Message [{}..{}], free pos: {}",
start, stop, self.rx_free_pos
);
trace!("{:x?}", line);
trace!("{:?}", line);
if let Some(id) = response::parse_id(line)? {
// it's a Response
match self.reqs.get(&id) {
Expand Down Expand Up @@ -200,10 +200,7 @@ impl<C: Read + ReadReady + Write, const RX_BUF_SIZE: usize, const TX_BUF_SIZE: u
.await
.map_err(|_| Error::NetworkError)?;
debug!("read {} bytes @{}", n, self.rx_free_pos);
trace!(
"{:x?}",
&self.rx_buf[self.rx_free_pos..self.rx_free_pos + n]
);
trace!("{:?}", &self.rx_buf[self.rx_free_pos..self.rx_free_pos + n]);
self.rx_free_pos += n;
}
Ok(msg)
Expand All @@ -219,7 +216,7 @@ impl<C: Read + ReadReady + Write, const RX_BUF_SIZE: usize, const TX_BUF_SIZE: u

async fn send_req(&mut self, req_len: usize) -> Result<()> {
self.tx_buf[req_len] = 0x0a;
trace!("{:x?}", &self.tx_buf[..req_len + 1]);
trace!("{:?}", &self.tx_buf[..req_len + 1]);
self.network_conn
.write_all(&self.tx_buf[..req_len + 1])
.await
Expand Down

0 comments on commit 1f68bd3

Please sign in to comment.