refactor: Make stream utils generic over the error type
This commit is contained in:
parent
6637e4c6a7
commit
47e2733ea1
4 changed files with 11 additions and 12 deletions
|
|
@ -209,7 +209,7 @@ pub(super) async fn compact(
|
|||
let parallelism = parallelism.unwrap_or(1);
|
||||
let results = maps
|
||||
.into_iter()
|
||||
.try_stream()
|
||||
.try_stream::<conduwuit::Error>()
|
||||
.paralleln_and_then(runtime, parallelism, move |map| {
|
||||
map.compact_blocking(options.clone())?;
|
||||
Ok(map.name().to_owned())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue