Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #495 from ripienaar/494
Browse files Browse the repository at this point in the history
(#494) Fix base class lock implimentation
  • Loading branch information
ripienaar committed May 15, 2018
2 parents 99be101 + 9eaabe6 commit 717ba61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mcollective/util/playbook/data_stores/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ def release(key)
# @note when the lock does not exist it should be created
# @param key [String] the lock name
# @param timeout [Integer,Float] how long to attempt to get the lock for
# @param ttl [Integer,Float] after this long the lock should expire in the event that we died
# @raise [StandardError] when locking fails
def lock(key, timeout, ttl)
def lock(key, timeout)
raise(NotImplementedError, "lock not implemented in %s" % [self.class], caller)
end

Expand Down

0 comments on commit 717ba61

Please sign in to comment.