mirror of
https://dev.azure.com/schwarzit/schwarzit.stackit-public/_git/audit-go
synced 2026-02-14 11:57: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) {
|
func NewDefaultAmqpConnectionPool(config AmqpConnectionConfig, connectionName string) (ConnectionPool, error) {
|
||||||
poolConfig := AmqpConnectionPoolConfig{
|
poolConfig := AmqpConnectionPoolConfig{
|
||||||
Parameters: config,
|
Parameters: config,
|
||||||
PoolSize: 1,
|
PoolSize: 2,
|
||||||
}
|
}
|
||||||
return NewAmqpConnectionPool(poolConfig, connectionName)
|
return NewAmqpConnectionPool(poolConfig, connectionName)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAmqpConnectionPool(config AmqpConnectionPoolConfig, connectionName string) (ConnectionPool, error) {
|
func NewAmqpConnectionPool(config AmqpConnectionPoolConfig, connectionName string) (ConnectionPool, error) {
|
||||||
if config.PoolSize == 0 {
|
if config.PoolSize == 0 {
|
||||||
config.PoolSize = 1
|
config.PoolSize = 2
|
||||||
}
|
}
|
||||||
pool := &AmqpConnectionPool{
|
pool := &AmqpConnectionPool{
|
||||||
config: config,
|
config: config,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue