Skip to content

Commit

Permalink
style: Update code formatting (#1682)
Browse files Browse the repository at this point in the history
For #1664
  • Loading branch information
godexsoft authored Oct 14, 2024
1 parent c3be155 commit b761fff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/util/requests/impl/WsConnectionImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class WsConnectionImpl : public WsConnection {
// The timer below can be called with no error code even if the operation is completed before the timeout, so we
// need an additional flag here
timer.async_wait([&cancellationSignal, isCompleted](boost::system::error_code errorCode) {
if (!errorCode and not *isCompleted)
if (!errorCode and !*isCompleted)
cancellationSignal.emit(boost::asio::cancellation_type::terminal);
});
operation(cyield);
Expand Down
12 changes: 4 additions & 8 deletions src/web/Server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ makeServerSslContext(util::Config const& config);
* @tparam HandlerType The executor to handle the requests
*/
template <
template <typename>
class PlainSessionType,
template <typename>
class SslSessionType,
template <typename> class PlainSessionType,
template <typename> class SslSessionType,
SomeServerHandler HandlerType>
class Detector : public std::enable_shared_from_this<Detector<PlainSessionType, SslSessionType, HandlerType>> {
using std::enable_shared_from_this<Detector<PlainSessionType, SslSessionType, HandlerType>>::shared_from_this;
Expand Down Expand Up @@ -201,10 +199,8 @@ class Detector : public std::enable_shared_from_this<Detector<PlainSessionType,
* @tparam HandlerType The handler to process the request and return response.
*/
template <
template <typename>
class PlainSessionType,
template <typename>
class SslSessionType,
template <typename> class PlainSessionType,
template <typename> class SslSessionType,
SomeServerHandler HandlerType>
class Server : public std::enable_shared_from_this<Server<PlainSessionType, SslSessionType, HandlerType>> {
using std::enable_shared_from_this<Server<PlainSessionType, SslSessionType, HandlerType>>::shared_from_this;
Expand Down

0 comments on commit b761fff

Please sign in to comment.