Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydunk committed Nov 26, 2024
1 parent 66977bf commit 062c1ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions source/common/http/http2/codec_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2132,8 +2132,8 @@ ClientConnectionImpl::ClientConnectionImpl(
}
http2_session_factory.init(base(), http2_options);
allow_metadata_ = http2_options.allow_metadata();
max_metadata_size_ = PROTOBUF_GET_WRAPPED_OR_DEFAULT(
http2_options, max_metadata_size, 1024 * 1024);
max_metadata_size_ =
PROTOBUF_GET_WRAPPED_OR_DEFAULT(http2_options, max_metadata_size, 1024 * 1024);
idle_session_requires_ping_interval_ = std::chrono::milliseconds(PROTOBUF_GET_MS_OR_DEFAULT(
http2_options.connection_keepalive(), connection_idle_interval, 0));
}
Expand Down Expand Up @@ -2218,8 +2218,8 @@ ServerConnectionImpl::ServerConnectionImpl(
#endif
sendSettings(http2_options, false);
allow_metadata_ = http2_options.allow_metadata();
max_metadata_size_ = PROTOBUF_GET_WRAPPED_OR_DEFAULT(
http2_options, max_metadata_size, 1024 * 1024);
max_metadata_size_ =
PROTOBUF_GET_WRAPPED_OR_DEFAULT(http2_options, max_metadata_size, 1024 * 1024);
}

Status ServerConnectionImpl::onBeginHeaders(int32_t stream_id) {
Expand Down
3 changes: 1 addition & 2 deletions source/common/http/http2/metadata_decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ struct MetadataDecoder::HpackDecoderContext {
http2::HpackDecoder decoder;
};

MetadataDecoder::MetadataDecoder(MetadataCallback cb,
uint64_t max_payload_size_bound)
MetadataDecoder::MetadataDecoder(MetadataCallback cb, uint64_t max_payload_size_bound)
: max_payload_size_bound_(max_payload_size_bound) {
ASSERT(cb != nullptr);
callback_ = std::move(cb);
Expand Down
3 changes: 2 additions & 1 deletion test/common/http/http2/metadata_encoder_test.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <cstdint>

#include "envoy/http/metadata_interface.h"

#include "source/common/buffer/buffer_impl.h"
Expand All @@ -11,7 +13,6 @@

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <cstdint>
#include "http2_frame.h"
#include "quiche/http2/adapter/data_source.h"
#include "quiche/http2/adapter/mock_http2_visitor.h"
Expand Down

0 comments on commit 062c1ee

Please sign in to comment.