Skip to content

Commit

Permalink
Require shard reader iter to be Send.
Browse files Browse the repository at this point in the history
  • Loading branch information
macklin-10x committed Aug 29, 2024
1 parent 2da4b31 commit 08ace43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unsorted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
impl<T, S> UnsortedShardReader<T, S>
where
T: DeserializeOwned,
<S as SortKey<T>>::Key: Clone + Ord + DeserializeOwned,
<S as SortKey<T>>::Key: Clone + Ord + DeserializeOwned + Send,
S: SortKey<T>,
{
/// Open a single shard file.
Expand Down Expand Up @@ -138,7 +138,7 @@ where
impl<T, S> Iterator for UnsortedShardReader<T, S>
where
T: DeserializeOwned,
<S as SortKey<T>>::Key: Clone + Ord + DeserializeOwned,
<S as SortKey<T>>::Key: Clone + Ord + DeserializeOwned + Send,
S: SortKey<T>,
{
type Item = Result<T, Error>;
Expand Down Expand Up @@ -178,15 +178,15 @@ where
S: SortKey<T>,
{
count: usize,
file_index_iter: Box<dyn Iterator<Item = KeylessShardRecord>>,
file_index_iter: Box<dyn Iterator<Item = KeylessShardRecord> + Send>,
shard_iter: Option<UnsortedShardIter<T>>,
phantom: PhantomData<S>,
}

impl<T, S> UnsortedShardFileReader<T, S>
where
T: DeserializeOwned,
<S as SortKey<T>>::Key: Clone + Ord + DeserializeOwned,
<S as SortKey<T>>::Key: Clone + Ord + DeserializeOwned + Send,
S: SortKey<T>,
{
/// Create a unsorted reader for a single shard file.
Expand Down

0 comments on commit 08ace43

Please sign in to comment.