diff options
| author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-04-15 12:03:21 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-04-15 12:05:20 +0100 |
| commit | 5b2166496e5f3ff2c4276e0b5b28f109c70673d5 (patch) | |
| tree | 93c351f6ef7d3d60d60247d5dbf531496f14a06c /src/uaLookup.cpp | |
| parent | 3ce6cf305572709332d7329674ec45c987a093ad (diff) | |
| download | webstat-5b2166496e5f3ff2c4276e0b5b28f109c70673d5.tar.bz2 webstat-5b2166496e5f3ff2c4276e0b5b28f109c70673d5.tar.xz webstat-5b2166496e5f3ff2c4276e0b5b28f109c70673d5.zip | |
Replace use of crc32 for entity id
Entity value is MD5 hashed same as DB unique key, but the id itself is
now taken from the DB primary key which is sequence generated.
Diffstat (limited to 'src/uaLookup.cpp')
| -rw-r--r-- | src/uaLookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uaLookup.cpp b/src/uaLookup.cpp index 8cd1cb2..0fee3f0 100644 --- a/src/uaLookup.cpp +++ b/src/uaLookup.cpp @@ -5,7 +5,7 @@ #include <modifycommand.h> namespace WebStat { - UserAgentLookupOperation::UserAgentLookupOperation(Crc32Value userAgentEntityId) : entityId {userAgentEntityId} { } + UserAgentLookupOperation::UserAgentLookupOperation(EntityId userAgentEntityId) : entityId {userAgentEntityId} { } void UserAgentLookupOperation::whenComplete(DB::Connection * dbconn) const @@ -16,7 +16,7 @@ namespace WebStat { } std::unique_ptr<CurlOperation> - curlGetUserAgentDetail(Crc32Value entityId, const std::string_view uas, const char * baseUrl) + curlGetUserAgentDetail(EntityId entityId, const std::string_view uas, const char * baseUrl) { auto request = std::make_unique<UserAgentLookupOperation>(entityId); |
