You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing this great gem. I have been diving deep into the code and trying to understand its internals. One question I can't work out is is if balance_for_locked_account is necessary.
With this change, on Ruby 3.3, all tests and the jackhammer pass for me, using Postgres. (I ran the jackhammer with threads, I couldn't get it to run with processes, maybe the issue is there.)
It's obviously not a critical part of the code but it does add a little bit of extra indirection, and as far as I can tell it's not necessary, as long as Locking.lock_accounts wraps around this code.
The text was updated successfully, but these errors were encountered:
@ghiculescu I am new to the lock property so unsure how it works. One way to find out, could you please check the SQL they AR generated? If the SQL queries are the same, I think we do not need Locking.balance_for_locked_account
Thanks for sharing this great gem. I have been diving deep into the code and trying to understand its internals. One question I can't work out is is if
balance_for_locked_account
is necessary.With this change, on Ruby 3.3, all tests and the jackhammer pass for me, using Postgres. (I ran the jackhammer with threads, I couldn't get it to run with processes, maybe the issue is there.)
It's obviously not a critical part of the code but it does add a little bit of extra indirection, and as far as I can tell it's not necessary, as long as
Locking.lock_accounts
wraps around this code.The text was updated successfully, but these errors were encountered: