Skip to content

Commit 303c43e

Browse files
committed
bugfixes
1 parent f618571 commit 303c43e

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/s3/builders/list_buckets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// limitations under the License.
1515

1616
use crate::s3::client::MinioClient;
17-
use crate::s3::error::{Error, ValidationErr};
17+
use crate::s3::error::ValidationErr;
1818
use crate::s3::multimap_ext::Multimap;
1919
use crate::s3::response::ListBucketsResponse;
2020
use crate::s3::types::{S3Api, S3Request, ToS3Request};

src/s3/builders/select_object_content.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ impl ToS3Request for SelectObjectContent {
8585

8686
let mut query_params: Multimap = insert(self.extra_query_params, "select");
8787
query_params.add("select-type", "2");
88+
query_params.add_version(self.version_id);
8889

8990
let body = Arc::new(SegmentedBytes::from(bytes));
9091

src/s3/builders/stat_object.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ pub struct StatObject {
4848
#[builder(default, setter(into))]
4949
version_id: Option<String>,
5050
#[builder(default, setter(into))]
51-
offset: Option<u64>,
52-
#[builder(default, setter(into))]
53-
length: Option<u64>,
54-
#[builder(default, setter(into))]
5551
region: Option<String>,
5652
#[builder(default, setter(into))]
5753
ssec: Option<SseCustomerKey>,
@@ -80,8 +76,6 @@ pub type StatObjectBldr = StatObjectBuilder<(
8076
(),
8177
(),
8278
(),
83-
(),
84-
(),
8579
)>;
8680

8781
impl S3Api for StatObject {

0 commit comments

Comments
 (0)