Skip to content

Commit

Permalink
view: 🔨 import Worker directly
Browse files Browse the repository at this point in the history
we only use this in one place, in a sibling module. let's just import
`worker::Worker` and spare the redirection.
  • Loading branch information
cratelyn committed Mar 4, 2024
1 parent 9b41c89 commit 9132c4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions crates/view/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ mod sync;
mod transaction_info;
mod worker;

use worker::Worker;

pub use crate::client::ViewClient;
pub use crate::metrics::register_metrics;
pub use crate::note_record::SpendableNoteRecord;
Expand Down
2 changes: 1 addition & 1 deletion crates/view/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use penumbra_transaction::{
AuthorizationData, Transaction, TransactionPerspective, TransactionPlan, WitnessData,
};

use crate::{Planner, Storage, Worker};
use crate::{worker::Worker, Planner, Storage};

/// A [`futures::Stream`] of broadcast transaction responses.
///
Expand Down

0 comments on commit 9132c4b

Please sign in to comment.