Skip to content

Commit

Permalink
fix: add default bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Jul 13, 2024
1 parent f8dd3a6 commit 1ee5ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundations/src/batcher/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::collections::{HashMap, HashSet};
use std::hash::BuildHasher;
use std::hash::{BuildHasher, RandomState};
use std::marker::PhantomData;
use std::sync::atomic::{AtomicU64, AtomicUsize};
use std::sync::Arc;
Expand Down Expand Up @@ -116,7 +116,7 @@ impl<T: BatchOperation> BatchMode<T> for BatcherNormalMode {
}
}

pub struct BatcherDataloader<S: BuildHasher + Default>(PhantomData<S>);
pub struct BatcherDataloader<S: BuildHasher + Default + Send + Sync = RandomState>(PhantomData<S>);

impl<T: BatchOperation, S: BuildHasher + Default + Send + Sync> BatchMode<T> for BatcherDataloader<S>
where
Expand Down

0 comments on commit 1ee5ec1

Please sign in to comment.