Skip to content

Commit

Permalink
expand pool sizing since pools are lazy anyways, fixes contribsys/fak…
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Dec 5, 2023
1 parent 66a4ff5 commit fdf7582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faktory/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Faktory
class Connection
class << self
def create(options = {})
size = Faktory.worker? ? (Faktory.options[:concurrency] + 2) : 5
size = Faktory.worker? ? (Faktory.options[:concurrency] + 5) : 20
ConnectionPool.new(timeout: options[:pool_timeout] || 1, size: size) do
Faktory::Client.new(**options)
end
Expand Down

0 comments on commit fdf7582

Please sign in to comment.