Updater: Property throttle Github API requests.

This commit is contained in:
Robin Davies
2024-09-15 10:39:17 -04:00
parent 2a851dbd4b
commit f52e50b29a
10 changed files with 496 additions and 323 deletions
+4
View File
@@ -33,6 +33,7 @@
#include <concepts>
#include <limits>
#include <stdexcept>
#include <chrono>
#define DECLARE_JSON_MAP(CLASSNAME) \
static pipedal::json_map::storage_type<CLASSNAME> jmap
@@ -367,6 +368,7 @@ namespace pipedal
{
os << value;
}
void write (const std::chrono::system_clock::time_point &time);
private:
static void throw_encoding_error();
@@ -995,6 +997,8 @@ namespace pipedal
if (is_.fail())
throw JsonException("Invalid format.");
}
void read(std::chrono::system_clock::time_point *value);
template <typename T>
void read(std::vector<T> *value)
{