diff --git a/envoy/stream_info/stream_info.h b/envoy/stream_info/stream_info.h index 39ffd18cef6a..2b14446c28ba 100644 --- a/envoy/stream_info/stream_info.h +++ b/envoy/stream_info/stream_info.h @@ -354,8 +354,7 @@ struct UpstreamTiming { absl::optional upstream_handshake_complete_; }; -class DownstreamTiming { -public: +struct DownstreamTiming { void setValue(absl::string_view key, MonotonicTime value) { timings_[key] = value; } absl::optional getValue(absl::string_view value) const { @@ -410,7 +409,6 @@ class DownstreamTiming { last_downstream_header_rx_byte_received_ = time_source.monotonicTime(); } -private: absl::flat_hash_map timings_; // The time when the last byte of the request was received. absl::optional last_downstream_rx_byte_received_;