소스 검색

[ruby/agoo] Use a connection pool of size 1 (#8959)

As Agoo is currently configured to not use threads, we can use a
connection pool of size 1.
Petrik de Heus 1 년 전
부모
커밋
820953f0a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      frameworks/Ruby/agoo/app.rb

+ 1 - 1
frameworks/Ruby/agoo/app.rb

@@ -6,7 +6,7 @@ require 'oj'
 require 'pg'
 require 'rack'
 
-$pool = ConnectionPool.new(size: 256, timeout: 5) do
+$pool = ConnectionPool.new(size: 1, timeout: 5) do
           PG::Connection.new({
                                  dbname:   'hello_world',
                                  host:     'tfb-database',