Remove unnecessary code, bump

This commit is contained in:
Mike Perham 2022-08-05 10:50:01 -07:00
parent 345ba002bc
commit 77fc95a630
3 changed files with 6 additions and 6 deletions

View File

@ -2,6 +2,11 @@
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/main/Ent-Changes.md)
6.5.4
----------
- Fix further metrics dependency issues [#5457]
6.5.3
----------

View File

@ -182,13 +182,8 @@ module Sidekiq
end
def process_count
# The work buried within Sidekiq::ProcessSet#cleanup can be
# expensive at scale. Cut it down by 90% with this counter.
# NB: This method is only called by the scheduler thread so we
# don't need to worry about the thread safety of +=.
pcount = Sidekiq.redis { |conn| conn.scard("processes") }
pcount = 1 if pcount == 0
@count_calls += 1
pcount
end

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Sidekiq
VERSION = "6.5.3"
VERSION = "6.5.4"
end