diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 17:06:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:02:34 +0100 |
commit | b446381dfa3f4298262ad8c7ef942d4ec64bcbea (patch) | |
tree | 464418b6892a5c30611ef23922cc55c0c03ef116 /src/ingestor.hpp | |
parent | 2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d (diff) | |
download | webstat-b446381dfa3f4298262ad8c7ef942d4ec64bcbea.tar.bz2 webstat-b446381dfa3f4298262ad8c7ef942d4ec64bcbea.tar.xz webstat-b446381dfa3f4298262ad8c7ef942d4ec64bcbea.zip |
Provide hostname to Ingestor
Store its Entity immediately for later use.
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r-- | src/ingestor.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; }; } |