Skip to content

Commit 5435449

Browse files
tlj77meta-codesync[bot]
authored andcommitted
5/[SR][Quota] Update quota enforce route handle to inject quota config
Summary: This diff: 1. Allow Service Name to be used for quota reporting/enforcement, so the hierarchy becomes servicename:clientId 2. Pass the quota config to server if customer has chosen the reporting option in SRConfig. Differential Revision: D84393063 fbshipit-source-id: f54721e6d455844078a7bc398f251bd26a88e85e
1 parent ded459e commit 5435449

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

third-party/thrift/src/thrift/lib/cpp2/transport/core/RpcMetadataUtil.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ RequestRpcMetadata makeRequestRpcMetadata(
177177
metadata.loggingContext() = *loggingContext;
178178
}
179179

180+
if (const auto& quotaReportConfig = header.quotaReportConfig()) {
181+
metadata.quotaReportConfig() = *quotaReportConfig;
182+
}
183+
180184
if (std::holds_alternative<InteractionCreate>(interactionHandle)) {
181185
metadata.interactionCreate() =
182186
std::get<InteractionCreate>(interactionHandle);

0 commit comments

Comments
 (0)