Skip to content

Commit a516cc0

Browse files
author
Devdutt Shenoi
authored
doc: reasoning behind range creation
Signed-off-by: Devdutt Shenoi <[email protected]>
1 parent 89edfc8 commit a516cc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parseable/streams.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ impl Stream {
144144
// entry is not present thus we create it
145145
std::fs::create_dir_all(&self.data_path)?;
146146

147+
// Use current time for partitioning to ensure consistent partition boundaries
147148
let range =
148149
TimeRange::granularity_range(Utc::now(), OBJECT_STORE_DATA_GRANULARITY);
149150
let file_path = self.data_path.join(&filename);

0 commit comments

Comments
 (0)