src/tools/parallel_handler.rs: remove unnecessary Sync trait bound
This commit is contained in:
parent
6ab77df3f5
commit
69b92fab7e
|
@ -57,7 +57,7 @@ impl <I: Send + Sync + 'static> ParallelHandler<I> {
|
||||||
threads: usize,
|
threads: usize,
|
||||||
handler_fn: F,
|
handler_fn: F,
|
||||||
) -> Self
|
) -> Self
|
||||||
where F: Fn(I) -> Result<(), Error> + Send + Sync + Clone + 'static,
|
where F: Fn(I) -> Result<(), Error> + Send + Clone + 'static,
|
||||||
{
|
{
|
||||||
let mut handles = Vec::new();
|
let mut handles = Vec::new();
|
||||||
let (input_tx, input_rx) = bounded::<I>(threads);
|
let (input_tx, input_rx) = bounded::<I>(threads);
|
||||||
|
|
Loading…
Reference in New Issue