فهرست منبع

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