garage_api_s3: remove unused field in ListPartsQuery
This commit is contained in:
parent
24470377c9
commit
c9d00f5f7b
2 changed files with 0 additions and 4 deletions
|
@ -317,7 +317,6 @@ impl ApiHandler for S3ApiServer {
|
||||||
} => {
|
} => {
|
||||||
let query = ListPartsQuery {
|
let query = ListPartsQuery {
|
||||||
bucket_name: ctx.bucket_name.clone(),
|
bucket_name: ctx.bucket_name.clone(),
|
||||||
bucket_id,
|
|
||||||
key,
|
key,
|
||||||
upload_id,
|
upload_id,
|
||||||
part_number_marker: part_number_marker.map(|p| p.min(10000)),
|
part_number_marker: part_number_marker.map(|p| p.min(10000)),
|
||||||
|
|
|
@ -54,7 +54,6 @@ pub struct ListMultipartUploadsQuery {
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ListPartsQuery {
|
pub struct ListPartsQuery {
|
||||||
pub bucket_name: String,
|
pub bucket_name: String,
|
||||||
pub bucket_id: Uuid,
|
|
||||||
pub key: String,
|
pub key: String,
|
||||||
pub upload_id: String,
|
pub upload_id: String,
|
||||||
pub part_number_marker: Option<u64>,
|
pub part_number_marker: Option<u64>,
|
||||||
|
@ -1245,10 +1244,8 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_fetch_part_info() -> Result<(), Error> {
|
fn test_fetch_part_info() -> Result<(), Error> {
|
||||||
let uuid = Uuid::from([0x08; 32]);
|
|
||||||
let mut query = ListPartsQuery {
|
let mut query = ListPartsQuery {
|
||||||
bucket_name: "a".to_string(),
|
bucket_name: "a".to_string(),
|
||||||
bucket_id: uuid,
|
|
||||||
key: "a".to_string(),
|
key: "a".to_string(),
|
||||||
upload_id: "xx".to_string(),
|
upload_id: "xx".to_string(),
|
||||||
part_number_marker: None,
|
part_number_marker: None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue