Skip to content

Commit 89edfc8

Browse files
author
Devdutt Shenoi
committed
style: it's a check
1 parent dfeca75 commit 89edfc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/event/format/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl EventFormat for Event {
179179
origin_size,
180180
is_first_event,
181181
parsed_timestamp,
182-
time_partitioned: time_partition.is_some(),
182+
is_time_partitioned: time_partition.is_some(),
183183
custom_partition_values,
184184
stream_type,
185185
})

src/event/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct Event {
4747
pub origin_size: u64,
4848
pub is_first_event: bool,
4949
pub parsed_timestamp: NaiveDateTime,
50-
pub time_partitioned: bool,
50+
pub is_time_partitioned: bool,
5151
pub custom_partition_values: HashMap<String, String>,
5252
pub stream_type: StreamType,
5353
}
@@ -56,7 +56,7 @@ pub struct Event {
5656
impl Event {
5757
pub fn process(self) -> Result<(), EventError> {
5858
let mut key = get_schema_key(&self.rb.schema().fields);
59-
if self.time_partitioned {
59+
if self.is_time_partitioned {
6060
// For time partitioned streams, concatenate timestamp to filename, ensuring we don't write to a finished arrows file
6161
let curr_timestamp = Utc::now().format("%Y%m%dT%H%M").to_string();
6262
key.push_str(&curr_timestamp);

src/handlers/http/ingest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ pub async fn push_logs_unchecked(
296296
origin_format: "json",
297297
origin_size: 0,
298298
parsed_timestamp: Utc::now().naive_utc(),
299-
time_partitioned: false,
299+
is_time_partitioned: false,
300300
is_first_event: true, // NOTE: Maybe should be false
301301
custom_partition_values: HashMap::new(), // should be an empty map for unchecked push
302302
stream_type: StreamType::UserDefined,

0 commit comments

Comments
 (0)