diff --git a/source/common/config/grpc_mux_impl.cc b/source/common/config/grpc_mux_impl.cc index e8351740595c9..54de8fa2291a4 100644 --- a/source/common/config/grpc_mux_impl.cc +++ b/source/common/config/grpc_mux_impl.cc @@ -213,7 +213,7 @@ void GrpcMuxImpl::onDiscoveryResponse( // We have to walk all watches (and need an efficient map as a result) to // ensure we deliver empty config updates when a resource is dropped. We make the map ordered // for test determinism. - std::vector resources; + std::vector resources; absl::btree_map resource_ref_map; std::vector all_resource_refs; OpaqueResourceDecoder& resource_decoder = api_state.watches_.front()->resource_decoder_; @@ -247,8 +247,7 @@ void GrpcMuxImpl::onDiscoveryResponse( // Execute external config validators if there are any watches. if (!api_state.watches_.empty()) { - config_validators_->executeValidators( - type_url, reinterpret_cast&>(resources)); + config_validators_->executeValidators(type_url, resources); } for (auto watch : api_state.watches_) { diff --git a/source/common/config/watch_map.cc b/source/common/config/watch_map.cc index d35a599b9bd4a..803bc729d210c 100644 --- a/source/common/config/watch_map.cc +++ b/source/common/config/watch_map.cc @@ -187,7 +187,7 @@ void WatchMap::onConfigUpdate( // Build a pair of maps: from watches, to the set of resources {added,removed} that each watch // cares about. Each entry in the map-pair is then a nice little bundle that can be fed directly // into the individual onConfigUpdate()s. - std::vector decoded_resources; + std::vector decoded_resources; absl::flat_hash_map> per_watch_added; for (const auto& r : added_resources) { const absl::flat_hash_set& interested_in_r = watchesInterestedIn(r.name()); @@ -211,9 +211,7 @@ void WatchMap::onConfigUpdate( } // Execute external config validators. - config_validators_.executeValidators( - type_url_, reinterpret_cast&>(decoded_resources), - removed_resources); + config_validators_.executeValidators(type_url_, decoded_resources, removed_resources); // We just bundled up the updates into nice per-watch packages. Now, deliver them. for (const auto& [cur_watch, resource_to_add] : per_watch_added) {