formatting
This commit is contained in:
parent
27287aea50
commit
21f42210a2
@ -10,12 +10,12 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "nlohmann/json.hpp"
|
#include "nlohmann/json.hpp"
|
||||||
|
#include <iostream>
|
||||||
#include <ixwebsocket/IXSocket.h>
|
#include <ixwebsocket/IXSocket.h>
|
||||||
#include <ixwebsocket/IXWebSocket.h>
|
#include <ixwebsocket/IXWebSocket.h>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
// for convenience
|
// for convenience
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
@ -258,7 +258,8 @@ namespace ix
|
|||||||
MsgPack msg(pdu);
|
MsgPack msg(pdu);
|
||||||
|
|
||||||
Bench bench("Sending file through websocket");
|
Bench bench("Sending file through websocket");
|
||||||
auto result = _webSocket.sendBinary(msg.dump(), [this, throttle](int current, int total) -> bool {
|
auto result =
|
||||||
|
_webSocket.sendBinary(msg.dump(), [this, throttle](int current, int total) -> bool {
|
||||||
spdlog::info("ws_send: Step {} out of {}", current + 1, total);
|
spdlog::info("ws_send: Step {} out of {}", current + 1, total);
|
||||||
|
|
||||||
if (throttle)
|
if (throttle)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user