fixup! Reformat source

This commit is contained in:
Xiaoge Su 2022-06-14 11:29:06 -07:00
parent 9fb6e5bb05
commit c2676df2f8
1 changed files with 9 additions and 3 deletions

View File

@ -395,7 +395,9 @@ std::string S3BlobStoreEndpoint::getResourceURL(std::string resource, std::strin
return r; return r;
} }
std::string constructResourcePath(Reference<S3BlobStoreEndpoint> b, const std::string& bucket, const std::string& object) { std::string constructResourcePath(Reference<S3BlobStoreEndpoint> b,
const std::string& bucket,
const std::string& object) {
std::string resource; std::string resource;
if (b->getHost().find(bucket + ".") != 0) { if (b->getHost().find(bucket + ".") != 0) {
@ -482,7 +484,9 @@ ACTOR Future<Void> deleteRecursively_impl(Reference<S3BlobStoreEndpoint> b,
loop { loop {
choose { choose {
// Throw if done throws, otherwise don't stop until end_of_stream // Throw if done throws, otherwise don't stop until end_of_stream
when(wait(done)) { done = Never(); } when(wait(done)) {
done = Never();
}
when(S3BlobStoreEndpoint::ListResult list = waitNext(resultStream.getFuture())) { when(S3BlobStoreEndpoint::ListResult list = waitNext(resultStream.getFuture())) {
for (auto& object : list.objects) { for (auto& object : list.objects) {
@ -1193,7 +1197,9 @@ ACTOR Future<S3BlobStoreEndpoint::ListResult> listObjects_impl(Reference<S3BlobS
loop { loop {
choose { choose {
// Throw if done throws, otherwise don't stop until end_of_stream // Throw if done throws, otherwise don't stop until end_of_stream
when(wait(done)) { done = Never(); } when(wait(done)) {
done = Never();
}
when(S3BlobStoreEndpoint::ListResult info = waitNext(resultStream.getFuture())) { when(S3BlobStoreEndpoint::ListResult info = waitNext(resultStream.getFuture())) {
results.commonPrefixes.insert( results.commonPrefixes.insert(