From cbc176b9bb02c2c136695a7d2321d840781decfd Mon Sep 17 00:00:00 2001 From: Wander Nauta Date: Tue, 18 Aug 2026 21:12:00 +0200 Subject: [PATCH] adapt LockedSqw to upstream changes in sqlwriter See https://github.com/berthubert/sqlitewrite/commit/5e291af887d57a0541d6777d3dcc0d1915db4d11 --- sws.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sws.hh b/sws.hh index ca22f30..1272d6c 100644 --- a/sws.hh +++ b/sws.hh @@ -33,12 +33,12 @@ struct LockedSqw return packResultsJson(result); } - void addValue(const std::initializer_list>& values, const std::string& table="data") + void addValue(const std::initializer_list>& values, const std::string& table="data") { std::lock_guard l(sqwlock); sqw.addValue(values, table); } - void addValue(const std::vector>& values, const std::string& table="data") + void addValue(const std::vector>& values, const std::string& table="data") { std::lock_guard l(sqwlock); sqw.addValue(values, table); @@ -117,10 +117,10 @@ struct SimpleWebSystem { return sws.getIP(req); } - void log(const std::initializer_list>& fields) + void log(const std::initializer_list>& fields) { // add agent? - std::vector> values{{"user", user}, {"ip", getIP()}, {"tstamp", time(0)}}; + std::vector> values{{"user", user}, {"ip", getIP()}, {"tstamp", time(0)}}; for(const auto& f : fields) values.push_back(f); lsqw.addValue(values, "log");