Skip to content

Commit

Permalink
Derive LockAquisitionError from LockError
Browse files Browse the repository at this point in the history
it just makes sense IMO to use `LockError` as a base error type.
  • Loading branch information
dhruvCW committed Aug 19, 2023
1 parent 423da9f commit ded261b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redlock/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Redlock
include Scripts

class LockAcquisitionError < StandardError
class LockAcquisitionError < LockError
attr_reader :errors

def initialize(message, errors)
Expand Down

0 comments on commit ded261b

Please sign in to comment.