Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Oct 22, 2023
1 parent 0b3fa51 commit df72b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/broker/src/adapters/deepkit-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class BrokerDeepkitPool {
getConnection(key: string): BrokerDeepkitConnection {
//key is used for consistent hashing
if (this.options.servers.length === 1) {
if (!this.connections) this.createConnection(this.options.servers[0]);
if (!this.connections.length) this.createConnection(this.options.servers[0]);
return this.connections[0].connection;
}

Expand Down

0 comments on commit df72b9a

Please sign in to comment.