Skip to content

Commit 88f2c83

Browse files
committed
refactor: remove unnecessary Arc
1 parent dda49e8 commit 88f2c83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/iceberg/src/scan.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl TableScan {
370370

371371
// used to stream delete files into the DeleteFileManager
372372
let (delete_file_tx, delete_file_rx) = channel(concurrency_limit_manifest_entries);
373-
let delete_file_manager = Arc::new(DeleteFileManager::from_receiver(delete_file_rx));
373+
let delete_file_manager = DeleteFileManager::from_receiver(delete_file_rx);
374374

375375
let manifest_list = self.plan_context.get_manifest_list().await?;
376376

@@ -593,7 +593,7 @@ struct ManifestFileContext {
593593
object_cache: Arc<ObjectCache>,
594594
snapshot_schema: SchemaRef,
595595
expression_evaluator_cache: Arc<ExpressionEvaluatorCache>,
596-
delete_file_manager: Arc<DeleteFileManager>,
596+
delete_file_manager: DeleteFileManager,
597597
}
598598

599599
/// Wraps a [`ManifestEntryRef`] alongside the objects that are needed
@@ -606,7 +606,7 @@ struct ManifestEntryContext {
606606
bound_predicates: Option<Arc<BoundPredicates>>,
607607
partition_spec_id: i32,
608608
snapshot_schema: SchemaRef,
609-
delete_file_manager: Arc<DeleteFileManager>,
609+
delete_file_manager: DeleteFileManager,
610610
}
611611

612612
impl ManifestFileContext {
@@ -712,7 +712,7 @@ impl PlanContext {
712712
manifest_list: Arc<ManifestList>,
713713
sender_data: Sender<ManifestEntryContext>,
714714
sender_delete: Sender<ManifestEntryContext>,
715-
delete_file_manager: Arc<DeleteFileManager>,
715+
delete_file_manager: DeleteFileManager,
716716
) -> Result<Box<impl Iterator<Item = Result<ManifestFileContext>>>> {
717717
let manifest_files = manifest_list.entries().iter();
718718

@@ -772,7 +772,7 @@ impl PlanContext {
772772
manifest_file: &ManifestFile,
773773
partition_filter: Option<Arc<BoundPredicate>>,
774774
sender: Sender<ManifestEntryContext>,
775-
delete_file_manager: Arc<DeleteFileManager>,
775+
delete_file_manager: DeleteFileManager,
776776
) -> ManifestFileContext {
777777
let bound_predicates =
778778
if let (Some(ref partition_bound_predicate), Some(snapshot_bound_predicate)) =

0 commit comments

Comments
 (0)