diff --git a/rust/worker/src/segment/types.rs b/rust/worker/src/segment/types.rs index 278a90dbca2..27fae95d6c7 100644 --- a/rust/worker/src/segment/types.rs +++ b/rust/worker/src/segment/types.rs @@ -1,12 +1,12 @@ use crate::types::EmbeddingRecord; -trait SegmentImpl { +trait SegmentWriter { fn begin_transaction(&self); fn write_records(&self, records: Vec>, offset_ids: Vec); fn commit_transaction(&self); fn rollback_transaction(&self); } -trait OffsetIdAssigner: SegmentImpl { +trait OffsetIdAssigner: SegmentWriter { fn assign_offset_ids(&self, records: Vec>) -> Vec; }