mirror of
https://dev.azure.com/schwarzit/schwarzit.stackit-public/_git/audit-go
synced 2026-02-07 16:47:24 +00:00
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:
parent
ddee3db2fe
commit
3eb803ae1c
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue