@@ -331,6 +331,10 @@ pub struct S3StorageConfig {
331331 pub disable_multipart_upload : bool ,
332332 #[ serde( default ) ]
333333 pub disable_checksums : bool ,
334+ #[ serde( default ) ]
335+ pub disable_stalled_stream_protection_upload : bool ,
336+ #[ serde( default ) ]
337+ pub disable_stalled_stream_protection_download : bool ,
334338}
335339
336340impl S3StorageConfig {
@@ -399,6 +403,16 @@ impl fmt::Debug for S3StorageConfig {
399403 "disable_multi_object_delete" ,
400404 & self . disable_multi_object_delete ,
401405 )
406+ . field ( "disable_multipart_upload" , & self . disable_multipart_upload )
407+ . field ( "disable_checksums" , & self . disable_checksums )
408+ . field (
409+ "disable_stalled_stream_protection_upload" ,
410+ & self . disable_stalled_stream_protection_upload ,
411+ )
412+ . field (
413+ "disable_stalled_stream_protection_download" ,
414+ & self . disable_stalled_stream_protection_download ,
415+ )
402416 . finish ( )
403417 }
404418}
@@ -634,6 +648,8 @@ mod tests {
634648 disable_multi_object_delete_requests: true
635649 disable_multipart_upload: true
636650 disable_checksums: true
651+ disable_stalled_stream_protection_upload: true
652+ disable_stalled_stream_protection_download: true
637653 "# ;
638654 let s3_storage_config: S3StorageConfig =
639655 serde_yaml:: from_str ( s3_storage_config_yaml) . unwrap ( ) ;
@@ -645,6 +661,8 @@ mod tests {
645661 disable_multi_object_delete : true ,
646662 disable_multipart_upload : true ,
647663 disable_checksums : true ,
664+ disable_stalled_stream_protection_upload : true ,
665+ disable_stalled_stream_protection_download : true ,
648666 ..Default :: default ( )
649667 } ;
650668 assert_eq ! ( s3_storage_config, expected_s3_config) ;
0 commit comments