Browse Source

[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 year ago
parent
commit
820953f0a2
1 changed files with 1 additions and 1 deletions
  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',