(ws) fix compiler warnings

This commit is contained in:
Benjamin Sergeant 2019-04-19 09:48:46 -07:00
parent e433e8b5e9
commit 4c4137d9f2
2 changed files with 11 additions and 2 deletions

View File

@ -39,6 +39,11 @@ namespace ix
if (eventType == ix::CobraConnection_EventType_Open)
{
std::cout << "Subscriber: connected" << std::endl;
for (auto it : headers)
{
std::cerr << it.first << ": " << it.second << std::endl;
}
}
else if (eventType == ix::CobraConnection_EventType_Authenticated)
{

View File

@ -46,7 +46,6 @@ namespace ix
Json::Value val(jsonValue);
int i = 0;
while (std::getline(tokenStream, token, '.'))
{
val = val[token];
@ -92,6 +91,11 @@ namespace ix
if (eventType == ix::CobraConnection_EventType_Open)
{
std::cout << "Subscriber: connected" << std::endl;
for (auto it : headers)
{
std::cerr << it.first << ": " << it.second << std::endl;
}
}
if (eventType == ix::CobraConnection_EventType_Closed)
{
@ -101,7 +105,7 @@ namespace ix
{
std::cout << "Subscriber authenticated" << std::endl;
conn.subscribe(channel,
[&jsonWriter, &statsdClient, &channel,
[&jsonWriter, &statsdClient,
verbose, &tokens, &prefix, &msgCount]
(const Json::Value& msg)
{