Skip to content

Commit 949962a

Browse files
authored
fix: remove c++20 designated initializers (#42)
1 parent 24c6cd8 commit 949962a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

libs/common/include/network/detail/asio_requester.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ class FoxyClient
150150
response_timeout_(response_timeout),
151151
handler_(std::move(handler)),
152152
session_(exec,
153-
foxy::session_opts{.ssl_ctx = ToOptRef(ssl_context_.get()),
154-
.timeout = connect_timeout_}),
153+
foxy::session_opts{ToOptRef(ssl_context_.get()),
154+
connect_timeout_}),
155155
resp_() {}
156156

157157
void Run() {

libs/server-sent-events/src/client.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ class FoxyClient : public Client,
6161
req_(std::move(req)),
6262
body_parser_(),
6363
session_(executor,
64-
foxy::session_opts{
65-
.ssl_ctx = ToOptRef(ssl_context_),
66-
.timeout = connect_timeout.value_or(kNoTimeout)}),
64+
foxy::session_opts{ToOptRef(ssl_context_),
65+
connect_timeout.value_or(kNoTimeout)}),
6766
logger_(std::move(logger)) {
6867
// SSE body will never end unless an error occurs, so we shouldn't set a
6968
// size limit.

0 commit comments

Comments
 (0)