Skip to content

Commit 9461e87

Browse files
author
magne
committed
chore: renaming variable
1 parent c910cdf commit 9461e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connection_pool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class ConnectionPool {
1515
connectionCreator: () => Promise<Connection>
1616
) {
1717
const key = this.getCacheKey(streamName, vhost, host, entityType)
18-
const proxies = this.connectionsMap.get(key) || []
19-
const connection = proxies.at(-1)
18+
const connections = this.connectionsMap.get(key) || []
19+
const connection = connections.at(-1)
2020
const refCount = connection?.refCount
2121
const cachedConnection =
2222
refCount !== undefined && refCount < getMaxSharedConnectionInstances() ? connection : undefined

0 commit comments

Comments
 (0)