Skip to content

Commit dfeca75

Browse files
author
Devdutt Shenoi
committed
fix: flush timerange is dependent on time of acceptance only
1 parent 179d78c commit dfeca75

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/parseable/streams.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ impl Stream {
144144
// entry is not present thus we create it
145145
std::fs::create_dir_all(&self.data_path)?;
146146

147-
let range = TimeRange::granularity_range(
148-
parsed_timestamp.and_local_timezone(Utc).unwrap(),
149-
OBJECT_STORE_DATA_GRANULARITY,
150-
);
147+
let range =
148+
TimeRange::granularity_range(Utc::now(), OBJECT_STORE_DATA_GRANULARITY);
151149
let file_path = self.data_path.join(&filename);
152150
let mut writer = DiskWriter::try_new(file_path, &record.schema(), range)
153151
.expect("File and RecordBatch both are checked");

0 commit comments

Comments
 (0)