Merged PR 724980: fix: Set default connection pool size to 2

Updating the default connection pool size after clarifying with the Integration platform team.

Security-concept-update-needed: false.

JIRA Work Item: STACKITRMA-68
This commit is contained in:
Christian Schaible 2025-01-29 15:07:27 +00:00
parent ddee3db2fe
commit 3eb803ae1c

View file

@ -41,14 +41,14 @@ type ConnectionPoolHandle struct {
func NewDefaultAmqpConnectionPool(config AmqpConnectionConfig, connectionName string) (ConnectionPool, error) {
poolConfig := AmqpConnectionPoolConfig{
Parameters: config,
PoolSize: 1,
PoolSize: 2,
}
return NewAmqpConnectionPool(poolConfig, connectionName)
}
func NewAmqpConnectionPool(config AmqpConnectionPoolConfig, connectionName string) (ConnectionPool, error) {
if config.PoolSize == 0 {
config.PoolSize = 1
config.PoolSize = 2
}
pool := &AmqpConnectionPool{
config: config,