Skip to content

Commit 851601e

Browse files
committed
MOD: Change get_range_to_file to concrete return
1 parent 9c9f0d5 commit 851601e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 0.30.1 - TBD
44

5+
### Enhancements
6+
- Changed `timeseries.get_range_to_file()` to return a concrete type instead of an impl
7+
trait type
8+
59
### Bug fixes
610
- Removed unused `S3` and `Disk` variants from `Delivery` enum
711

src/historical/timeseries.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use std::{num::NonZeroU64, path::PathBuf};
44

5+
use async_compression::tokio::bufread::ZstdDecoder;
56
use dbn::{
67
decode::DbnMetadata,
78
encode::{AsyncDbnEncoder, AsyncEncodeRecordRef},
@@ -78,7 +79,7 @@ impl TimeseriesClient<'_> {
7879
pub async fn get_range_to_file(
7980
&mut self,
8081
params: &GetRangeToFileParams,
81-
) -> crate::Result<AsyncDbnDecoder<impl AsyncReadExt>> {
82+
) -> crate::Result<AsyncDbnDecoder<ZstdDecoder<BufReader<File>>>> {
8283
let reader = self
8384
.get_range_impl(
8485
&params.dataset,

0 commit comments

Comments
 (0)