Skip to content

Commit

Permalink
refactor: publicity
Browse files Browse the repository at this point in the history
  • Loading branch information
laysakura committed Apr 6, 2023
1 parent 15b7c93 commit 9e06ddc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdks/rust/src/worker/operators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static OPERATORS_BY_URN: Lazy<Mutex<OperatorMap>> = Lazy::new(|| {
Mutex::new(m)
});

pub trait OperatorI {
pub(crate) trait OperatorI {
fn new(
transform_id: Arc<String>,
transform: Arc<PTransform>,
Expand All @@ -75,7 +75,7 @@ pub trait OperatorI {
}

#[derive(fmt::Debug, EnumDiscriminants)]
pub enum Operator {
pub(crate) enum Operator {
// Test operators
Create(CreateOperator),
Recording(RecordingOperator),
Expand Down Expand Up @@ -156,7 +156,7 @@ impl OperatorI for Operator {
}
}

pub fn create_operator(transform_id: &str, context: Arc<OperatorContext>) -> Operator {
pub(crate) fn create_operator(transform_id: &str, context: Arc<OperatorContext>) -> Operator {
let descriptor: &ProcessBundleDescriptor = context.descriptor.as_ref();

let transform = descriptor
Expand Down Expand Up @@ -228,7 +228,7 @@ pub struct Receiver {
}

impl Receiver {
pub fn new(operators: Vec<Arc<Operator>>) -> Self {
pub(crate) fn new(operators: Vec<Arc<Operator>>) -> Self {
Receiver { operators }
}

Expand Down Expand Up @@ -456,7 +456,7 @@ impl OperatorI for ImpulsePerBundleOperator {
fn finish_bundle(&self) {}
}

struct GroupByKeyWithinBundleOperator {
pub(crate) struct GroupByKeyWithinBundleOperator {
receivers: Vec<Arc<Receiver>>,
key_extractor: &'static Box<dyn serialize::KeyExtractor>,
// TODO: Operator requiring locking for structures only ever manipulated in
Expand Down

0 comments on commit 9e06ddc

Please sign in to comment.