Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiy0006 committed Sep 20, 2024
1 parent fa8ef61 commit 7b6098b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/internal/mixin_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,11 @@ std::vector<MixinMethod> 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;
Expand Down

0 comments on commit 7b6098b

Please sign in to comment.