瀏覽代碼

[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',