Skip to content
Snippets Groups Projects
Commit dea4b202 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

proxy server: make json type explicit

parent dc2f3546
No related branches found
No related tags found
No related merge requests found
......@@ -705,7 +705,7 @@ DhtProxyServer::subscribe(restinio::request_handle_t request,
Json::Value json;
json["key"] = infoHash.toString();
json["to"] = clientId;
json["t"] = std::chrono::duration_cast<std::chrono::milliseconds>(system_clock::now().time_since_epoch()).count();
json["t"] = Json::Value::Int64(std::chrono::duration_cast<std::chrono::milliseconds>(system_clock::now().time_since_epoch()).count());
{
std::lock_guard<std::mutex> l(sessionCtx->lock);
json["s"] = sessionCtx->sessionId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment