@@ -83,7 +83,7 @@ pub async fn push_logs(
8383 for value in data {
8484 let size = serde_json:: to_vec ( & value) . unwrap ( ) . len ( ) ; // string length need not be the same as byte length
8585 let parsed_timestamp = get_parsed_timestamp ( & value, time_partition. as_ref ( ) ) ;
86- let partition_values = match custom_partition. as_ref ( ) {
86+ let custom_partition_values = match custom_partition. as_ref ( ) {
8787 Some ( custom_partition) => {
8888 let custom_partitions = custom_partition. split ( ',' ) . collect_vec ( ) ;
8989 get_custom_partition_values ( & value, & custom_partitions)
@@ -99,7 +99,7 @@ pub async fn push_logs(
9999 time_partition. as_ref ( ) ,
100100 schema_version,
101101 parsed_timestamp,
102- & partition_values ,
102+ custom_partition_values ,
103103 size as u64 ,
104104 )
105105 . await ?;
@@ -117,7 +117,7 @@ pub async fn create_process_record_batch(
117117 time_partition : Option < & String > ,
118118 schema_version : SchemaVersion ,
119119 parsed_timestamp : NaiveDateTime ,
120- custom_partition_values : & HashMap < String , String > ,
120+ custom_partition_values : HashMap < String , String > ,
121121 origin_size : u64 ,
122122) -> Result < ( ) , PostError > {
123123 let ( rb, is_first_event) = get_stream_schema (
@@ -136,7 +136,7 @@ pub async fn create_process_record_batch(
136136 is_first_event,
137137 parsed_timestamp,
138138 time_partition : time_partition. cloned ( ) ,
139- custom_partition_values : custom_partition_values . clone ( ) ,
139+ custom_partition_values,
140140 stream_type : StreamType :: UserDefined ,
141141 }
142142 . process ( )
0 commit comments