Skip to content

chore(advisory-locks): stop keeping lock state that nothing ever reads - #68

Merged
yordis merged 1 commit into
yordis/fix-stale-verify-timerfrom
yordis/refactor-drop-unused-lock-lease
Oct 26, 2026
Merged

yordis merged 1 commit into
yordis/fix-stale-verify-timerfrom
yordis/refactor-drop-unused-lock-lease

Conversation

@yordis

@yordis yordis commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

@cursor

cursor Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Internal struct cleanup with no change to public APIs or lock/lease reply semantics.

Overview
Removes the unused lease field from the internal EventStore.AdvisoryLocks.Lock struct and stops passing storage lease data into Lock.new/3 when subscription locks are acquired or refreshed.

Subscription lock behavior is unchanged for callers: try_subscription_lock still replies with {:ok, Lease.t()} built from EventStore.Storage.Lock.Lease; only duplicate state that was never read is dropped.

Reviewed by Cursor Bugbot for commit d991b92. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a8fa7c49-2af2-4c8b-aa7f-9383a564b340
Commits

Reviewing files that changed from the base of the PR and between 15063c6 and a6803b7.

Files selected for processing: 1
  • lib/event_store/advisory_locks.ex
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yordis
yordis added this pull request to stack #73 October 26, 2026 16:00
@yordis
yordis force-pushed the yordis/refactor-drop-unused-lock-lease branch from d991b92 to b54b2ec Compare October 26, 2026 16:16
@yordis
yordis removed this pull request from stack #73 October 26, 2026 16:53
@yordis
yordis force-pushed the yordis/refactor-drop-unused-lock-lease branch from b54b2ec to db92a9d Compare October 26, 2026 16:54
@yordis
yordis added this pull request to stack #74 October 26, 2026 17:10
@yordis
yordis force-pushed the yordis/refactor-drop-unused-lock-lease branch 2 times, most recently from a7d1caf to 2ba5ae8 Compare October 26, 2026 17:47
…eads

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@yordis
yordis force-pushed the yordis/refactor-drop-unused-lock-lease branch from 2ba5ae8 to a6803b7 Compare October 26, 2026 19:31
@yordis yordis changed the title refactor(advisory-locks): stop keeping lock state that nothing ever reads chore(advisory-locks): stop keeping lock state that nothing ever reads Oct 26, 2026
@yordis
yordis merged commit 5fce7ad into main Oct 26, 2026
7 of 8 checks passed
@yordis
yordis deleted the yordis/refactor-drop-unused-lock-lease branch October 26, 2026 22:05
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