Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refactor RunCbOnFirstNonEmptyBlocking #1608

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

dranikpg
Copy link
Contributor

I refactored RunCbOnFirstNonEmptyBlocking a little to be more readable and easier to understand

  1. I've explicitly split the callback invocation into expiry/non expiry path (I remember Roman once asked for this). The code flow is linear now and easier to grasp
  2. Added some high level comments for logic
  3. Some small changes

Shouldn't include any functional changes

@dranikpg dranikpg requested a review from royjacobson July 31, 2023 12:14
adiholden
adiholden previously approved these changes Jul 31, 2023
@dranikpg dranikpg merged commit 7673e02 into dragonflydb:main Jul 31, 2023
romange added a commit that referenced this pull request Aug 1, 2023
@dranikpg dranikpg deleted the fix-blocking-tx-2 branch August 2, 2023 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants