diff --git a/src/execution_plans/metrics.rs b/src/execution_plans/metrics.rs index f905fe9..1d9e559 100644 --- a/src/execution_plans/metrics.rs +++ b/src/execution_plans/metrics.rs @@ -11,7 +11,7 @@ use std::fmt::{Debug, Formatter}; /// A transparent wrapper that delegates all execution to its child but returns custom metrics. This node is invisible during display. /// The structure of a plan tree is closely tied to the [TaskMetricsRewriter]. -pub struct MetricsWrapperExec { +pub(crate) struct MetricsWrapperExec { inner: Arc, /// metrics for this plan node. metrics: MetricsSet, @@ -21,7 +21,7 @@ pub struct MetricsWrapperExec { } impl MetricsWrapperExec { - pub fn new(inner: Arc, metrics: MetricsSet) -> Self { + pub(crate) fn new(inner: Arc, metrics: MetricsSet) -> Self { Self { inner, metrics, diff --git a/src/execution_plans/mod.rs b/src/execution_plans/mod.rs index 6a64763..377c273 100644 --- a/src/execution_plans/mod.rs +++ b/src/execution_plans/mod.rs @@ -6,7 +6,7 @@ mod network_shuffle; mod partition_isolator; pub use distributed::DistributedExec; -pub use metrics::MetricsWrapperExec; +pub(crate) use metrics::MetricsWrapperExec; pub use network_coalesce::{NetworkCoalesceExec, NetworkCoalesceReady}; pub use network_shuffle::{NetworkShuffleExec, NetworkShuffleReadyExec}; pub use partition_isolator::PartitionIsolatorExec;