Skip to content

Commit

Permalink
fix: pin in finally
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Oct 8, 2024
1 parent d7f8aef commit 936aa7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/client_bulk_write/client_bulk_write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class ClientBulkWriteOperation extends CommandOperation<ClientBulkWriteCu
if (server.description.type === ServerType.LoadBalancer) {
// Unpin the connection if there are no more batches.
if (session?.pinnedConnection && !this.commandBuilder.hasNextBatch()) {
console.log('unpinning');
console.log('unpinning finally');
session?.unpin({ force: true });
}
}
Expand Down

0 comments on commit 936aa7e

Please sign in to comment.