fix: dumb cache update
This commit is contained in:
@@ -125,11 +125,9 @@ where
|
||||
Ok(resp) => {
|
||||
use sdgb_api::bincode::encode_to_vec;
|
||||
|
||||
use crate::cache::PLAYERS;
|
||||
|
||||
info!("fetched: {user_id}");
|
||||
|
||||
if let Ok(mut table) = cache::open_table(&write, PLAYERS)
|
||||
if let Ok(mut table) = cache::open_table(&write, definition)
|
||||
&& let Ok(encoded) = encode_to_vec(resp, config)
|
||||
{
|
||||
_ = table.insert(resp.get_uid(), encoded);
|
||||
|
||||
Reference in New Issue
Block a user