From 1f920600856cf4a59bacd1520e6aa8b3f74e6f48 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 12 Mar 2024 19:20:12 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 298c8cf1..3507b284 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -54,6 +54,7 @@ public: std::string const &val_) { uint64_t hash; + STRPOOL_U64 key; const char *val; fmt::print("insert {}={}\n", @@ -61,8 +62,7 @@ public: val_); hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp); - - + val = _cache.insert_or_assign(hash,val_); }