Skip to content

Commit

Permalink
style: reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
sdd committed Dec 23, 2024
1 parent 0b8ce7c commit 9e9ee48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/iceberg/src/delete_file_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ use crate::runtime::spawn;
use crate::scan::{DeleteFileContext, FileScanTaskDeleteFile};
use crate::spec::{DataContentType, DataFile, Struct};

/// Index of delete files
#[derive(Clone, Debug)]
pub(crate) struct DeleteFileIndex {
state: Arc<RwLock<DeleteFileIndexState>>,
}

#[derive(Debug)]
enum DeleteFileIndexState {
Populating,
Expand All @@ -44,12 +50,6 @@ struct PopulatedDeleteFileIndex {
pos_deletes_by_path: HashMap<String, Vec<Arc<DeleteFileContext>>>,
}

/// Index of delete files
#[derive(Clone, Debug)]
pub(crate) struct DeleteFileIndex {
state: Arc<RwLock<DeleteFileIndexState>>,
}

impl DeleteFileIndex {
/// create a new `DeleteFileIndex` along with the sender that populates it with delete files
pub(crate) fn new() -> (DeleteFileIndex, Sender<DeleteFileContext>) {
Expand Down

0 comments on commit 9e9ee48

Please sign in to comment.