From 4785b4d8c5bac4e03ed8dd2a4c01ec098da60d7b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 23 Sep 2025 13:29:51 +0100 Subject: Make DB pool protected for access from unit tests --- src/ingestor.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index a0dd1b9..ffdcc9a 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -34,6 +34,8 @@ namespace WebStat { std::string userAgentAPI = "https://useragentstring.com"; protected: + DB::ConnectionPoolPtr dbpool; + size_t linesRead = 0; size_t linesParsed = 0; size_t linesDiscarded = 0; @@ -48,7 +50,6 @@ namespace WebStat { using CurlOperations = std::map>; mutable std::flat_set existingEntities; uint32_t hostnameId; - DB::ConnectionPoolPtr dbpool; CurlMultiPtr curl; mutable CurlOperations curlOperations; }; -- cgit v1.2.3