From b446381dfa3f4298262ad8c7ef942d4ec64bcbea Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 23 Aug 2025 17:06:01 +0100 Subject: Provide hostname to Ingestor Store its Entity immediately for later use. --- 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 a7a57a6..892cc9c 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -9,7 +9,7 @@ namespace WebStat { class Ingestor { public: - Ingestor(DB::ConnectionPtr dbconn); + Ingestor(std::string_view hostname, DB::ConnectionPtr dbconn); virtual ~Ingestor() = default; SPECIAL_MEMBERS_DEFAULT_MOVE_NO_COPY(Ingestor); @@ -33,6 +33,7 @@ namespace WebStat { size_t linesDiscarded = 0; private: + uint32_t hostnameId; DB::ConnectionPtr dbconn; }; } -- cgit v1.2.3