Skip to content

Commit

Permalink
chore: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Feb 2, 2024
1 parent 0c59d34 commit 6d8a4b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coordinator/src/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ impl RedisClientImpl {
Ok(())
}

// `redis::transaction`s currently don't work with async connections, so we have to create a _new_
// blocking connection to atmoically update a value.
pub fn atomic_update<K, O, N, F>(&self, key: K, update_fn: F) -> anyhow::Result<()>
where
K: ToRedisArgs + Copy + 'static,
Expand Down

0 comments on commit 6d8a4b6

Please sign in to comment.