Skip to content

Commit cb54d2e

Browse files
committed
update
1 parent cfde583 commit cb54d2e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
stack-service-base (0.0.82)
4+
stack-service-base (0.0.84)
55
async
66
debug
77
dotenv

lib/stack-service-base/fiber_pool.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
class FiberConnectionPool < Sequel::ConnectionPool
2121
VALIDATION_TIMEOUT = 20
22-
POOL_SIZE = 10
22+
POOL_SIZE = ENV.fetch('DB_CONNECTION_POOL_SIZE', '10').to_i
23+
LOGGER.info "DB_CONNECTION_POOL_SIZE: #{POOL_SIZE}"
2324

2425
def initialize(db, opts = OPTS)
2526
otl_span "FiberConnectionPool.initialize" do |span|

lib/stack-service-base/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module StackServiceBase
2-
VERSION = '0.0.83'
2+
VERSION = '0.0.84'
33
end

0 commit comments

Comments
 (0)