Skip to content

Commit b14651b

Browse files
committed
Allow users to call PlanDependantUsize
1 parent fbcde22 commit b14651b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/distributed_planner/distributed_config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ pub struct PlanDependantUsize(
1111
pub(crate) Arc<dyn Fn(&Arc<dyn ExecutionPlan>) -> usize + Send + Sync>,
1212
);
1313

14+
impl PlanDependantUsize {
15+
pub fn call(&self, plan: &Arc<dyn ExecutionPlan>) -> usize {
16+
self.0(plan)
17+
}
18+
}
19+
1420
pub trait IntoPlanDependantUsize {
1521
fn into_plan_dependant_usize(self) -> PlanDependantUsize;
1622
}

0 commit comments

Comments
 (0)