Skip to content

Commit c53bcc0

Browse files
authored
Merge pull request #438 from 3scale/3scale-2.16-hotfix-max-connections
2.16 Hotfix: Sentinels: limit number of connections to redis.
2 parents 7640d6b + 55fd0bc commit c53bcc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/3scale/backend/async_redis/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def connect_tcp(opts)
3737
protocol = Protocol::ExtendedRESP2.new(db: db, credentials: credentials)
3838

3939
if opts.key? :sentinels
40-
SentinelsClientACLTLS.new(uri, protocol, opts)
40+
SentinelsClientACLTLS.new(uri, protocol, opts, limit: opts[:max_connections])
4141
else
4242
host = uri.host || EndpointHelpers::DEFAULT_HOST
4343
port = uri.port || EndpointHelpers::DEFAULT_PORT

0 commit comments

Comments
 (0)