Skip to content

Commit

Permalink
Fix for unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Oct 21, 2023
1 parent f8886d9 commit aef6743
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/impl/tlstransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ void TlsTransport::Cleanup() {
}

TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProxyTransport>> lower,
optional<string> host, certificate_ptr certificate,
optional<string> cacert, state_callback callback)
optional<string> host, certificate_ptr certificate, optional<string>,
state_callback callback)
: Transport(std::visit([](auto l) { return std::static_pointer_cast<Transport>(l); }, lower),
std::move(callback)),
mHost(std::move(host)), mIsClient(std::visit([](auto l) { return l->isActive(); }, lower)),
Expand Down Expand Up @@ -567,8 +567,8 @@ void TlsTransport::Cleanup() {
}

TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProxyTransport>> lower,
optional<string> host, certificate_ptr certificate,
optional<string> cacert, state_callback callback)
optional<string> host, certificate_ptr certificate, optional<string>,
state_callback callback)
: Transport(std::visit([](auto l) { return std::static_pointer_cast<Transport>(l); }, lower),
std::move(callback)),
mHost(std::move(host)), mIsClient(std::visit([](auto l) { return l->isActive(); }, lower)),
Expand Down

0 comments on commit aef6743

Please sign in to comment.