File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
connector/src/parser/avro Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl AvroAccessBuilder {
87
87
/// ## Confluent schema registry
88
88
///
89
89
/// - In Kafka ([Confluent schema registry wire format](https://docs.confluent.io/platform/7.6/schema-registry/fundamentals/serdes-develop/index.html#wire-format)):
90
- /// starts with 5 bytes`0x00{schema_id:08x}` followed by Avro binary encoding.
90
+ /// starts with 5 bytes`0x00{schema_id:08x}` followed by Avro binary encoding.
91
91
async fn parse_avro_value ( & self , payload : & [ u8 ] ) -> ConnectorResult < Option < Value > > {
92
92
// parse payload to avro value
93
93
// if use confluent schema, get writer schema from confluent schema registry
Original file line number Diff line number Diff line change @@ -116,10 +116,7 @@ impl S3StreamingUploader {
116
116
/// Reference: <https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html>
117
117
const MIN_PART_SIZE : usize = 5 * 1024 * 1024 ;
118
118
const MAX_PART_SIZE : usize = 5 * 1024 * 1024 * 1024 ;
119
- let part_size = config
120
- . upload_part_size
121
- . min ( MAX_PART_SIZE )
122
- . max ( MIN_PART_SIZE ) ;
119
+ let part_size = config. upload_part_size . clamp ( MIN_PART_SIZE , MAX_PART_SIZE ) ;
123
120
124
121
Self {
125
122
client,
You can’t perform that action at this time.
0 commit comments