Skip to content

Commit 78eedcc

Browse files
committed
Change check if message was never used before
1 parent c9a4834 commit 78eedcc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/bolt-connection/src/connection-provider/connection-provider-pooled.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export default class PooledConnectionProvider extends ConnectionProvider {
7171
*/
7272
_createConnection (address, release) {
7373
return this._createChannelConnection(address).then(connection => {
74-
connection._firstUsage = true
7574
connection._release = () => {
76-
connection._firstUsage = false
7775
return release(address, connection)
7876
}
7977
this._openConnections[connection.id] = connection
@@ -123,7 +121,7 @@ export default class PooledConnectionProvider extends ConnectionProvider {
123121
const connection = await this._connectionPool.acquire(address)
124122
const serverInfo = new ServerInfo(connection.server, connection.protocol().version)
125123
try {
126-
if (!connection._firstUsage && !connection.protocol().isLastMessageLogin()) {
124+
if (!connection.protocol().isLastMessageLogin()) {
127125
await connection.resetAndFlush()
128126
}
129127
} finally {

0 commit comments

Comments
 (0)