From 7a8cedd42b84eb4e123d751770f0d61a05ffe16d Mon Sep 17 00:00:00 2001 From: XiaoxiWang Date: Fri, 4 Sep 2020 18:58:46 +0000 Subject: [PATCH] format --- fdbserver/workloads/TagThrottleApi.actor.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fdbserver/workloads/TagThrottleApi.actor.cpp b/fdbserver/workloads/TagThrottleApi.actor.cpp index 0dd36d0105..80f46a3d26 100644 --- a/fdbserver/workloads/TagThrottleApi.actor.cpp +++ b/fdbserver/workloads/TagThrottleApi.actor.cpp @@ -165,9 +165,9 @@ struct TagThrottleApiWorkload : TestWorkload { ++activeAutoThrottledTags; } - if(self->apiVersion == 630) { - ASSERT(tag.reason == TagThrottledReason::UNSET); - } + if(self->apiVersion == 630) { + ASSERT(tag.reason == TagThrottledReason::UNSET); + } } ASSERT(manualThrottledTags <= SERVER_KNOBS->MAX_MANUAL_THROTTLED_TRANSACTION_TAGS); @@ -187,14 +187,14 @@ struct TagThrottleApiWorkload : TestWorkload { } ACTOR Future getRecommendedTags(TagThrottleApiWorkload* self, Database cx) { - std::vector tags = wait(ThrottleApi::getRecommendedTags(cx, CLIENT_KNOBS->TOO_MANY)); + std::vector tags = wait(ThrottleApi::getRecommendedTags(cx, CLIENT_KNOBS->TOO_MANY)); - for(auto& tag : tags) { - ASSERT(tag.throttleType == TagThrottleType::AUTO); - if(self->apiVersion == 630) { - ASSERT(tag.reason == TagThrottledReason::UNSET); - } - } + for(auto& tag : tags) { + ASSERT(tag.throttleType == TagThrottleType::AUTO); + if(self->apiVersion == 630) { + ASSERT(tag.reason == TagThrottledReason::UNSET); + } + } return Void(); }