From 806dc4bb2414d93cd9271e7d9da6203d1c5f77ba Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 12 Mar 2024 19:25:08 -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 2af6c5e7..17efb31a 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -57,14 +57,16 @@ public: const char *ptr; STRPOOL_U64 token; - fmt::print("insert {}={}\n", - key_, - val_); - hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp); token = strpool_inject(&_strpool,val_.c_str(),val_.size()); ptr = strpool_cstr(&_strpool,token); _cache.insert_or_assign(hash,val_); + + fmt::print("insert {}={} token={} ptr={}\n", + key_, + val_, + token, + ptr); } const