Skip to content

Commit

Permalink
Fix block for with_lock, that doesn't yield the receiver
Browse files Browse the repository at this point in the history
Thanks to @npezza93 for catching this ^_^U
  • Loading branch information
rosa committed Sep 11, 2024
1 parent d58c230 commit 6d7bc6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solid_queue/processes/registrable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def stop_heartbeat
end

def heartbeat
process.with_lock(&:heartbeat)
process.with_lock { process.heartbeat }
rescue ActiveRecord::RecordNotFound
self.process = nil
wake_up
Expand Down

0 comments on commit 6d7bc6f

Please sign in to comment.