Skip to content

Commit

Permalink
v8.0.4 ignore empty ruleset
Browse files Browse the repository at this point in the history
Signed-off-by: Peter DeMartini <[email protected]>
  • Loading branch information
iamruinous authored and peterdemartini committed Sep 20, 2017
1 parent 27ff051 commit 8b05221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "command-and-control-service",
"version": "8.0.3",
"version": "8.0.4",
"description": "command-and-control-service an Octoblu Service",
"keywords": [
"Octoblu",
Expand Down Expand Up @@ -70,4 +70,4 @@
"optionalDependencies": {
"hiredis": "^0.5.0"
}
}
}
1 change: 1 addition & 0 deletions src/services/message-service.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class MessageService
return _.union allUpdates, _.values(mergedUpdates)

_getRulesetWithLock: (lock, ruleset, callback) =>
return callback() if _.isEmpty ruleset
benchmark = new SimpleBenchmark { label: 'redlock:extend' }
@benchmarks["redlock:extend"] ?= []
lock.extend 30000, =>
Expand Down

0 comments on commit 8b05221

Please sign in to comment.