Skip to content

prevent block when err is nil#12

Open
chalkan3 wants to merge 1 commit intoelectric-saw:mainfrom
chalkan3:chore/prevent-lock
Open

prevent block when err is nil#12
chalkan3 wants to merge 1 commit intoelectric-saw:mainfrom
chalkan3:chore/prevent-lock

Conversation

@chalkan3
Copy link
Copy Markdown

@chalkan3 chalkan3 commented Jan 3, 2025

Additional Verification
• After calling TryAdvisoryLock, we add an explicit check for !ok.
• This ensures that even if no explicit error occurs (err == nil), the case where the lock is not acquired is properly handled.

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.

1 participant