Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/batch_coordinator.rs → src/batch_coordinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#![allow(dead_code)]

pub mod simple;

use std::collections::HashSet;
use std::vec::Vec;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
mod index;

use index::Index;
use std::{
collections::HashSet,
fs::{File, OpenOptions},
Expand All @@ -10,7 +13,7 @@ use uuid::Uuid;

use crate::{
batch_coordinator::BatchInfo, error::RisklessResult,
messages::commit_batch_request::CommitBatchRequest, simple_batch_coordinator::index::Index,
messages::commit_batch_request::CommitBatchRequest,
};

use crate::batch_coordinator::{
Expand Down Expand Up @@ -264,7 +267,7 @@ impl BatchCoordinator for SimpleBatchCoordinator {

/// No-op as this operation is not supported in the SimpleBatchCoordinator.
async fn delete_files(&self, _request: DeleteFilesRequest) {}

/// Always returns false.
async fn is_safe_to_delete_file(&self, _object_key: String) -> bool {
false
Expand Down
2 changes: 1 addition & 1 deletion src/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::{
produce_request::{ProduceRequest, ProduceRequestCollection},
produce_response::ProduceResponse,
},
segment::SharedLogSegment,
shared_log_segment::SharedLogSegment,
utils::request_response::Request,
};

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ pub mod batch_coordinator;
mod utils;
mod broker;
pub mod messages;
mod segment;
pub mod simple_batch_coordinator;
mod shared_log_segment;

pub use broker::{Broker, BrokerConfiguration};
pub mod error;
275 changes: 0 additions & 275 deletions src/segment.rs

This file was deleted.

Loading