forked from Deuxfleurs/garage
Less verbosity
This commit is contained in:
parent
200f2254a3
commit
be4831d768
1 changed files with 1 additions and 3 deletions
|
@ -30,7 +30,7 @@ pub async fn handle_list(
|
||||||
let mut truncated = true;
|
let mut truncated = true;
|
||||||
let mut next_chunk_start = prefix.to_string();
|
let mut next_chunk_start = prefix.to_string();
|
||||||
|
|
||||||
println!("List request: `{}` {} `{}`", delimiter, max_keys, prefix);
|
debug!("List request: `{}` {} `{}`", delimiter, max_keys, prefix);
|
||||||
|
|
||||||
while result.len() < max_keys && truncated {
|
while result.len() < max_keys && truncated {
|
||||||
let objects = garage
|
let objects = garage
|
||||||
|
@ -70,7 +70,6 @@ pub async fn handle_list(
|
||||||
size: 0,
|
size: 0,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
println!("Entry: {} {:?}", delimited_key, new_info);
|
|
||||||
result.insert(delimited_key, new_info);
|
result.insert(delimited_key, new_info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,7 +105,6 @@ pub async fn handle_list(
|
||||||
writeln!(&mut xml, "\t</Contents>").unwrap();
|
writeln!(&mut xml, "\t</Contents>").unwrap();
|
||||||
}
|
}
|
||||||
writeln!(&mut xml, "</ListBucketResult>").unwrap();
|
writeln!(&mut xml, "</ListBucketResult>").unwrap();
|
||||||
println!("{}", xml);
|
|
||||||
|
|
||||||
Ok(Response::new(Box::new(BytesBody::from(xml.into_bytes()))))
|
Ok(Response::new(Box::new(BytesBody::from(xml.into_bytes()))))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue