Skip to content

Commit 77e688b

Browse files
Remove bufferpool from connection
1 parent 003e58d commit 77e688b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/cmap/connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Socket, SocketConnectOpts } from 'net';
1+
kimport type { Socket, SocketConnectOpts } from 'net';
22
import * as net from 'net';
33
import type { ConnectionOptions as TLSConnectionOpts, TLSSocket } from 'tls';
44
import * as tls from 'tls';

src/cmap/connection.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,6 @@ export class ModernConnection extends TypedEventEmitter<ConnectionEvents> {
810810
/** @internal */
811811
[kClusterTime]: Document | null;
812812

813-
bufferPool: BufferPool;
814-
815813
/** @event */
816814
static readonly COMMAND_STARTED = COMMAND_STARTED;
817815
/** @event */
@@ -875,8 +873,6 @@ export class ModernConnection extends TypedEventEmitter<ConnectionEvents> {
875873
// hook the message stream up to the passed in stream
876874
this.socket.pipe(this[kMessageStream]);
877875
this[kMessageStream].pipe(this.socket);
878-
879-
this.bufferPool = new BufferPool();
880876
}
881877

882878
get description(): StreamDescription {

0 commit comments

Comments
 (0)