From 64926b69f6a1f2739b83b8c9b0dfc0d44b14de79 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 15 Mar 2024 07:36:01 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index be8f6252..484daf4b 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -60,19 +60,21 @@ public: size_t const keylen_, std::string const &val_) { + Key key; uint64_t hash; STRPOOL_U64 token; + key = key_; hash = wyhash(key_,keylen_,0xdeadbeef,_wyp); _cache.insert_or_assign(hash,val_); - fmt::print("insert {}={} token={} ptr={}\n", + fmt::print("insert {}={} token={}\n", key_, val_, - token, - ptr); + token); - return ptr; + + return key; } Key