Skip to content

Commit 5454dfa

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-designated-initializers in fbcode/proxygen/httpserver
Reviewed By: dtolnay Differential Revision: D78955097 fbshipit-source-id: 61a22789067b37b170682510478490f6ea4fa13e
1 parent bd0af69 commit 5454dfa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

proxygen/httpserver/HTTPServer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ folly::Expected<folly::Unit, std::exception_ptr> HTTPServer::startTcpServer(
144144
auto codecFactory = addresses_[i].codecFactory;
145145
auto acceptorFactory =
146146
getAcceptorFactory
147-
? getAcceptorFactory({accConfig, std::move(codecFactory)})
147+
? getAcceptorFactory({.accConfig = accConfig,
148+
.codecFactory = std::move(codecFactory)})
148149
: std::make_shared<AcceptorFactory>(
149150
options_, codecFactory, accConfig, sessionInfoCb_);
150151
bootstrap_.push_back(wangle::ServerBootstrap<wangle::DefaultPipeline>());

proxygen/httpserver/samples/proxy/ProxyHandler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ void ProxyHandler::onRequest(std::unique_ptr<HTTPMessage> headers) noexcept {
7373
upstreamSock_->connect(this, addr, FLAGS_proxy_connect_timeout);
7474
} else {
7575
// A more sophisticated proxy would have a connection pool here
76-
const folly::SocketOptionMap opts{{{SOL_SOCKET, SO_REUSEADDR}, 1}};
76+
const folly::SocketOptionMap opts{
77+
{{.level = SOL_SOCKET, .optname = SO_REUSEADDR}, 1}};
7778
downstream_->pauseIngress();
7879
connector_.connect(folly::EventBaseManager::get()->getEventBase(),
7980
addr,

0 commit comments

Comments
 (0)