chore(deps): update fred and moka (#3088)

This commit is contained in:
Kartikeya Hegde
2023-12-11 15:21:23 +05:30
committed by GitHub
parent 2c4599a1cd
commit 129b1e55bd
14 changed files with 130 additions and 129 deletions

View File

@ -535,6 +535,7 @@ mod tests {
merchant_id,
hashed_api_key.into_inner()
),)
.await
.is_none()
)
}

View File

@ -63,7 +63,7 @@ where
F: FnOnce() -> Fut + Send,
Fut: futures::Future<Output = CustomResult<T, errors::StorageError>> + Send,
{
let cache_val = cache.get_val::<T>(key);
let cache_val = cache.get_val::<T>(key).await;
if let Some(val) = cache_val {
Ok(val)
} else {

View File

@ -890,6 +890,7 @@ mod merchant_connector_account_cache_tests {
"{}_{}",
merchant_id, connector_label
),)
.await
.is_none())
}
}

View File

@ -50,8 +50,8 @@ async fn invalidate_existing_cache_success() {
let response_body = response.body().await;
println!("invalidate Cache: {response:?} : {response_body:?}");
assert_eq!(response.status(), awc::http::StatusCode::OK);
assert!(cache::CONFIG_CACHE.get(&cache_key).is_none());
assert!(cache::ACCOUNTS_CACHE.get(&cache_key).is_none());
assert!(cache::CONFIG_CACHE.get(&cache_key).await.is_none());
assert!(cache::ACCOUNTS_CACHE.get(&cache_key).await.is_none());
}
#[actix_web::test]