Skip to content

Commit

Permalink
Merge pull request #51 from rfdzan/rename
Browse files Browse the repository at this point in the history
fix: rename struct
  • Loading branch information
rfdzan authored Apr 21, 2024
2 parents 7208a0d + 7e4ad6f commit 5f45b6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bulk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl ParallelBuilder {
pub fn build(self) -> Parallel {
let (tx, rx) = channel::unbounded();
Parallel {
to_thread: StuffThatNeedsToBeSent {
to_thread: ToThread {
vec: self.vec,
device_num: self.device_num,
quality: self.quality,
Expand Down Expand Up @@ -64,12 +64,12 @@ impl ParallelBuilder {
}

#[derive(Debug)]
pub struct StuffThatNeedsToBeSent {
pub struct ToThread {
vec: VecDeque<(usize, Vec<u8>)>,
device_num: u8,
quality: u8,
}
impl StuffThatNeedsToBeSent {
impl ToThread {
/// Compress images in parallel.
fn send_to_threads(
self,
Expand Down Expand Up @@ -132,7 +132,7 @@ impl StuffThatNeedsToBeSent {
/// Parallelized compression task.
#[derive(Debug)]
pub struct Parallel {
to_thread: StuffThatNeedsToBeSent,
to_thread: ToThread,
transmitter: channel::Sender<Result<Vec<u8>, error::Error>>,
receiver: channel::Receiver<Result<Vec<u8>, error::Error>>,
}
Expand Down

0 comments on commit 5f45b6a

Please sign in to comment.