Skip to content

Commit

Permalink
Use Redstream::Lock#wait in Redstream::Trimmer (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkamel authored Sep 21, 2024
1 parent 96e7f3b commit 5c6be7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## v0.6.1
* Use Redstream::Lock#wait in Redstream::Trimmer

## v0.6.0
* Allow sharding records into multiple streams

Expand Down
2 changes: 1 addition & 1 deletion lib/redstream/trimmer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run_once
end
end

sleep(5) unless got_lock
@lock.wait(5) unless got_lock
rescue StandardError => e
@logger.error e

Expand Down
2 changes: 1 addition & 1 deletion lib/redstream/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Redstream
VERSION = "0.6.0"
VERSION = "0.6.1"
end

0 comments on commit 5c6be7e

Please sign in to comment.