Skip to content

Commit

Permalink
feat: Optimize the traversal method for type list
Browse files Browse the repository at this point in the history
  • Loading branch information
yglsaltfish committed Dec 31, 2024
1 parent c8a6ee7 commit 640b8e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/proxy_plugin/proxy_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ void ProxyPlugin::RegisterSubChannel() {
.module_name = "core",
.msg_type_support_ref = type_support_wrapper.type_support_ref}};

for (const auto& it : type_support_wrapper.type_support_ref.SerializationTypesSupportedListSpan()) {
subscribe_wrapper.require_cache_serialization_types.emplace(it.str);
for (const auto type_list = type_support_wrapper.type_support_ref.SerializationTypesSupportedListSpan(); const auto& type : type_list) {
subscribe_wrapper.require_cache_serialization_types.emplace(type.str);
}

subscribe_wrapper.callback = [this, action_raw_ptr = proxy_action.get()](
Expand Down

0 comments on commit 640b8e5

Please sign in to comment.