From 7b6098bacc12fd582055d9bf3098be2a5f505923 Mon Sep 17 00:00:00 2001 From: Yao Cui Date: Fri, 20 Sep 2024 17:40:47 +0000 Subject: [PATCH] add comment --- generator/internal/mixin_utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generator/internal/mixin_utils.cc b/generator/internal/mixin_utils.cc index a0946ce6c37f..dde297758c10 100644 --- a/generator/internal/mixin_utils.cc +++ b/generator/internal/mixin_utils.cc @@ -189,10 +189,11 @@ std::vector GetMixinMethods(YAML::Node const& service_config, for (int j = 0; j < mixin_service->method_count(); ++j) { MethodDescriptor const* mixin_method = mixin_service->method(j); auto mixin_method_full_name = mixin_method->full_name(); + // Add the mixin method only if it appears in the http field of YAML auto const it = mixin_http_overrides.find(mixin_method_full_name); if (it == mixin_http_overrides.end()) continue; - // if the mixin method name required from YAML appears in the original + // If the mixin method name required from YAML appears in the original // service proto, ignore the mixin. if (method_names.find(mixin_method->name()) != method_names.end()) continue;