clang-format

This commit is contained in:
Benjamin Sergeant 2020-04-16 11:58:06 -07:00
parent 9b8cfa0a37
commit ccfd196863
7 changed files with 59 additions and 62 deletions

View File

@ -6,9 +6,9 @@
#pragma once #pragma once
#include "IXWebSocketHttpHeaders.h"
#include <cstdint> #include <cstdint>
#include <string> #include <string>
#include "IXWebSocketHttpHeaders.h"
namespace ix namespace ix
{ {

View File

@ -222,7 +222,8 @@ namespace ix
{ {
_pongReceived = false; _pongReceived = false;
std::stringstream ss; std::stringstream ss;
ss << kPingMessage << "::" << _pingIntervalSecs << "s" << "::" << _pingCount++; ss << kPingMessage << "::" << _pingIntervalSecs << "s"
<< "::" << _pingCount++;
return sendPing(ss.str()); return sendPing(ss.str());
} }

View File

@ -180,8 +180,7 @@ namespace
_conn.configure(_cobraConfig); _conn.configure(_cobraConfig);
_conn.connect(); _conn.connect();
_conn.setEventCallback([this, channel](const CobraEventPtr& event) _conn.setEventCallback([this, channel](const CobraEventPtr& event) {
{
if (event->type == ix::CobraEventType::Open) if (event->type == ix::CobraEventType::Open)
{ {
log("Subscriber connected: " + _user); log("Subscriber connected: " + _user);

View File

@ -54,8 +54,7 @@ namespace
conn.configure(config); conn.configure(config);
conn.connect(); conn.connect();
conn.setEventCallback([&conn, &channel](const CobraEventPtr& event) conn.setEventCallback([&conn, &channel](const CobraEventPtr& event) {
{
if (event->type == ix::CobraEventType::Open) if (event->type == ix::CobraEventType::Open)
{ {
TLogger() << "Subscriber connected:"; TLogger() << "Subscriber connected:";

View File

@ -106,8 +106,7 @@ namespace ix
&msgPerSeconds, &msgPerSeconds,
&conditionVariableMutex, &conditionVariableMutex,
&condition, &condition,
&queue](const CobraEventPtr& event) &queue](const CobraEventPtr& event) {
{
if (event->type == ix::CobraEventType::Open) if (event->type == ix::CobraEventType::Open)
{ {
spdlog::info("Subscriber connected"); spdlog::info("Subscriber connected");

View File

@ -38,8 +38,8 @@ namespace ix
std::atomic<bool> authenticated(false); std::atomic<bool> authenticated(false);
std::atomic<bool> messageAcked(false); std::atomic<bool> messageAcked(false);
conn.setEventCallback([&conn, &channel, &data, &authenticated, &messageAcked](const CobraEventPtr& event) conn.setEventCallback(
{ [&conn, &channel, &data, &authenticated, &messageAcked](const CobraEventPtr& event) {
if (event->type == ix::CobraEventType::Open) if (event->type == ix::CobraEventType::Open)
{ {
spdlog::info("Publisher connected"); spdlog::info("Publisher connected");

View File

@ -106,8 +106,7 @@ namespace ix
&msgPerSeconds, &msgPerSeconds,
&quiet, &quiet,
&fluentd, &fluentd,
&fatalCobraError](const CobraEventPtr& event) &fatalCobraError](const CobraEventPtr& event) {
{
if (event->type == ix::CobraEventType::Open) if (event->type == ix::CobraEventType::Open)
{ {
spdlog::info("Subscriber connected"); spdlog::info("Subscriber connected");