Skip to content

Commit 64d9e70

Browse files
committed
fix doc lint
1 parent 7f286da commit 64d9e70

File tree

1 file changed

+4
-5
lines changed
  • quickwit/quickwit-indexing/src/source

1 file changed

+4
-5
lines changed

quickwit/quickwit-indexing/src/source/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,30 +377,29 @@ impl Handler<SuggestTruncate> for SourceActor {
377377
}
378378
}
379379

380-
#[derive(Debug, Default)]
381-
struct BatchBuilder {
380+
pub struct BatchBuilder {
382381
docs: Vec<Bytes>,
383382
num_bytes: u64,
384383
checkpoint_delta: SourceCheckpointDelta,
385384
}
386385

387386
impl BatchBuilder {
388-
fn build(self) -> RawDocBatch {
387+
pub fn build(self) -> RawDocBatch {
389388
RawDocBatch {
390389
docs: self.docs,
391390
checkpoint_delta: self.checkpoint_delta,
392391
force_commit: false,
393392
}
394393
}
395-
fn build_force(self) -> RawDocBatch {
394+
pub fn build_force(self) -> RawDocBatch {
396395
RawDocBatch {
397396
docs: self.docs,
398397
checkpoint_delta: self.checkpoint_delta,
399398
force_commit: true,
400399
}
401400
}
402401

403-
fn push(&mut self, doc: Bytes, num_bytes: u64) {
402+
pub fn push(&mut self, doc: Bytes, num_bytes: u64) {
404403
self.docs.push(doc);
405404
self.num_bytes += num_bytes;
406405
}

0 commit comments

Comments
 (0)