clang formatting
This commit is contained in:
parent
83ae105edb
commit
cb1f9f5a44
@ -8,12 +8,12 @@
|
|||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <ixbots/IXCobraToSentryBot.h>
|
||||||
#include <ixcobra/IXCobraConnection.h>
|
#include <ixcobra/IXCobraConnection.h>
|
||||||
#include <ixcobra/IXCobraMetricsPublisher.h>
|
#include <ixcobra/IXCobraMetricsPublisher.h>
|
||||||
#include <ixcrypto/IXUuid.h>
|
#include <ixcrypto/IXUuid.h>
|
||||||
#include <ixsnake/IXRedisServer.h>
|
#include <ixsnake/IXRedisServer.h>
|
||||||
#include <ixsnake/IXSnakeServer.h>
|
#include <ixsnake/IXSnakeServer.h>
|
||||||
#include <ixbots/IXCobraToSentryBot.h>
|
|
||||||
#include <ixwebsocket/IXHttpServer.h>
|
#include <ixwebsocket/IXHttpServer.h>
|
||||||
#include <ixwebsocket/IXUserAgent.h>
|
#include <ixwebsocket/IXUserAgent.h>
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ namespace
|
|||||||
cobraMetricsPublisher.push("sms_metric_F_id", msg); // (msg #5)
|
cobraMetricsPublisher.push("sms_metric_F_id", msg); // (msg #5)
|
||||||
ix::msleep(500);
|
ix::msleep(500);
|
||||||
}
|
}
|
||||||
}
|
} // namespace
|
||||||
|
|
||||||
TEST_CASE("Cobra_to_sentry_bot", "[foo]")
|
TEST_CASE("Cobra_to_sentry_bot", "[foo]")
|
||||||
{
|
{
|
||||||
@ -161,9 +161,16 @@ TEST_CASE("Cobra_to_sentry_bot", "[foo]")
|
|||||||
// Only run the bot for 3 seconds
|
// Only run the bot for 3 seconds
|
||||||
int runtime = 3;
|
int runtime = 3;
|
||||||
|
|
||||||
int sentCount = cobra_to_sentry_bot(config, channel, filter, dsn,
|
int sentCount = cobra_to_sentry_bot(config,
|
||||||
verbose, strict, jobs,
|
channel,
|
||||||
maxQueueSize, enableHeartbeat, runtime);
|
filter,
|
||||||
|
dsn,
|
||||||
|
verbose,
|
||||||
|
strict,
|
||||||
|
jobs,
|
||||||
|
maxQueueSize,
|
||||||
|
enableHeartbeat,
|
||||||
|
runtime);
|
||||||
//
|
//
|
||||||
// We want at least 2 messages to be sent
|
// We want at least 2 messages to be sent
|
||||||
//
|
//
|
||||||
|
16
ws/ws.cpp
16
ws/ws.cpp
@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
#include <cli11/CLI11.hpp>
|
#include <cli11/CLI11.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <ixbots/IXCobraToSentryBot.h>
|
||||||
|
#include <ixbots/IXCobraToStatsdBot.h>
|
||||||
#include <ixcore/utils/IXCoreLogger.h>
|
#include <ixcore/utils/IXCoreLogger.h>
|
||||||
#include <ixwebsocket/IXNetSystem.h>
|
#include <ixwebsocket/IXNetSystem.h>
|
||||||
#include <ixwebsocket/IXSocket.h>
|
#include <ixwebsocket/IXSocket.h>
|
||||||
#include <ixwebsocket/IXUserAgent.h>
|
#include <ixwebsocket/IXUserAgent.h>
|
||||||
#include <ixbots/IXCobraToSentryBot.h>
|
|
||||||
#include <ixbots/IXCobraToStatsdBot.h>
|
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -449,8 +449,16 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
bool enableHeartbeat = true;
|
bool enableHeartbeat = true;
|
||||||
int runtime = -1;
|
int runtime = -1;
|
||||||
ret = ix::cobra_to_sentry_bot(
|
ret = ix::cobra_to_sentry_bot(cobraConfig,
|
||||||
cobraConfig, channel, filter, dsn, verbose, strict, jobs, maxQueueSize, enableHeartbeat, runtime);
|
channel,
|
||||||
|
filter,
|
||||||
|
dsn,
|
||||||
|
verbose,
|
||||||
|
strict,
|
||||||
|
jobs,
|
||||||
|
maxQueueSize,
|
||||||
|
enableHeartbeat,
|
||||||
|
runtime);
|
||||||
}
|
}
|
||||||
else if (app.got_subcommand("cobra_metrics_to_redis"))
|
else if (app.got_subcommand("cobra_metrics_to_redis"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user