Skip to content

Commit

Permalink
mobile: Allow default runtime guard values to be overridden (#37772)
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Beyad <[email protected]>
  • Loading branch information
abeyad authored Dec 20, 2024
1 parent 2fcdcf4 commit 4d1d0c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile/library/cc/engine_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -852,19 +852,19 @@ std::unique_ptr<envoy::config::bootstrap::v3::Bootstrap> EngineBuilder::generate
*(*envoy_layer.mutable_fields())["envoy"].mutable_struct_value();
ProtobufWkt::Struct& reloadable_features =
*(*runtime_values.mutable_fields())["reloadable_features"].mutable_struct_value();
(*reloadable_features.mutable_fields())["prefer_quic_client_udp_gro"].set_bool_value(true);
for (auto& guard_and_value : runtime_guards_) {
(*reloadable_features.mutable_fields())[guard_and_value.first].set_bool_value(
guard_and_value.second);
}
(*reloadable_features.mutable_fields())["prefer_quic_client_udp_gro"].set_bool_value(true);
ProtobufWkt::Struct& restart_features =
*(*runtime_values.mutable_fields())["restart_features"].mutable_struct_value();
(*runtime_values.mutable_fields())["disallow_global_stats"].set_bool_value(true);
(*runtime_values.mutable_fields())["enable_dfp_dns_trace"].set_bool_value(true);
for (auto& guard_and_value : restart_runtime_guards_) {
(*restart_features.mutable_fields())[guard_and_value.first].set_bool_value(
guard_and_value.second);
}
(*runtime_values.mutable_fields())["disallow_global_stats"].set_bool_value(true);
(*runtime_values.mutable_fields())["enable_dfp_dns_trace"].set_bool_value(true);
ProtobufWkt::Struct& overload_values =
*(*envoy_layer.mutable_fields())["overload"].mutable_struct_value();
(*overload_values.mutable_fields())["global_downstream_max_connections"].set_string_value(
Expand Down

0 comments on commit 4d1d0c8

Please sign in to comment.