Skip to content

Commit

Permalink
fix: add to reverse lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
dracarys18 committed Nov 29, 2023
1 parent 74d4168 commit 9c2fd78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/storage_impl/src/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use redis_interface::SetnxReply;

use crate::{
diesel_error_to_data_error,
errors::RedisErrorExt,
redis::kv_store::{kv_wrapper, KvOperation},
utils::{self, try_redis_get_else_try_database_get},
DatabaseStore, KVRouterStore, RouterStore,
Expand Down Expand Up @@ -97,7 +98,7 @@ impl<T: DatabaseStore> ReverseLookupInterface for KVRouterStore<T> {
format!("reverse_lookup_{}", &created_rev_lookup.lookup_id),
)
.await
.change_context(errors::StorageError::KVError)?
.map_err(|err| err.to_redis_failed_response(&created_rev_lookup.lookup_id))?
.try_into_setnx()
{
Ok(SetnxReply::KeySet) => Ok(created_rev_lookup),
Expand Down

0 comments on commit 9c2fd78

Please sign in to comment.