Reverting to rapidjson for attempt record serialization
This commit is contained in:
@@ -2,6 +2,7 @@ Include(FetchContent)
|
|||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
Catch2
|
Catch2
|
||||||
|
GIT_SHALLOW TRUE
|
||||||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
||||||
GIT_TAG v2.13.7)
|
GIT_TAG v2.13.7)
|
||||||
FetchContent_MakeAvailable(Catch2)
|
FetchContent_MakeAvailable(Catch2)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ ExternalProject_Add(hiredisDownload
|
|||||||
PREFIX ${hiredis_root}
|
PREFIX ${hiredis_root}
|
||||||
GIT_REPOSITORY https://github.com/redis/hiredis.git
|
GIT_REPOSITORY https://github.com/redis/hiredis.git
|
||||||
GIT_TAG "v1.0.1"
|
GIT_TAG "v1.0.1"
|
||||||
|
GIT_SHALLOW TRUE
|
||||||
CONFIGURE_COMMAND ""
|
CONFIGURE_COMMAND ""
|
||||||
BUILD_IN_SOURCE ON
|
BUILD_IN_SOURCE ON
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ ExternalProject_Add(PistacheDownload
|
|||||||
PREFIX ${pistache_root}
|
PREFIX ${pistache_root}
|
||||||
GIT_REPOSITORY https://github.com/pistacheio/pistache.git
|
GIT_REPOSITORY https://github.com/pistacheio/pistache.git
|
||||||
GIT_TAG master
|
GIT_TAG master
|
||||||
|
GIT_SHALLOW TRUE
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -326,6 +326,7 @@ namespace daggy {
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
std::string attemptRecordToJSON(const AttemptRecord &record)
|
std::string attemptRecordToJSON(const AttemptRecord &record)
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
@@ -341,8 +342,8 @@ namespace daggy {
|
|||||||
|
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
std::string attemptRecordToJSON(const AttemptRecord &record) {
|
std::string attemptRecordToJSON(const AttemptRecord &record) {
|
||||||
rj::Document doc;
|
rj::Document doc;
|
||||||
doc.SetObject();
|
doc.SetObject();
|
||||||
@@ -377,7 +378,6 @@ namespace daggy {
|
|||||||
alloc);
|
alloc);
|
||||||
return dumpJSON(doc);
|
return dumpJSON(doc);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
AttemptRecord attemptRecordFromJSON(const std::string &json)
|
AttemptRecord attemptRecordFromJSON(const std::string &json)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user