Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Sep 19, 2024
1 parent 83a386d commit 9a19286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/derive/src/stages/channel_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ impl BatchReader {
}

let compression_type = data[0];
if (compression_type & 0x0F) == ZLIB_DEFLATE_COMPRESSION_METHOD
|| (compression_type & 0x0F) == ZLIB_RESERVED_COMPRESSION_METHOD
if (compression_type & 0x0F) == ZLIB_DEFLATE_COMPRESSION_METHOD ||
(compression_type & 0x0F) == ZLIB_RESERVED_COMPRESSION_METHOD
{
self.decompressed = decompress_to_vec_zlib(&data).ok()?;
} else if compression_type == CHANNEL_VERSION_BROTLI {
Expand Down Expand Up @@ -246,7 +246,7 @@ mod test {
async fn test_next_batch_batch_reader_no_data() {
let mock = MockChannelReaderProvider::new(vec![Ok(None)]);
let mut reader = ChannelReader::new(mock, Arc::new(RollupConfig::default()));
assert_eq!(reader.next_batch().await, Err(StageError::NoChannel));
assert!(matches!(reader.next_batch().await.unwrap_err(), StageError::Temporary(_)));
assert!(reader.next_batch.is_none());
}

Expand Down

0 comments on commit 9a19286

Please sign in to comment.