Skip to content

Commit 8384987

Browse files
committed
fix(data-service): skip compass ping during connect COMPASS-9455
1 parent b7caa2e commit 8384987

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/data-service/src/connect-mongo-client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import _ from 'lodash';
2121
import { redactConnectionOptions, redactConnectionString } from './redact';
2222
import type { ConnectionOptions } from './connection-options';
2323
import { getTunnelOptions, waitForTunnelError } from './ssh-tunnel-helpers';
24-
import { runCommand } from './run-command';
2524
import type { UnboundDataServiceImplLogger } from './logger';
2625
import { debug as _debug } from './logger';
2726

@@ -252,7 +251,7 @@ export async function connectMongoClientDataService({
252251
connectLogger,
253252
CompassMongoClient
254253
);
255-
await runCommand(client.db('admin'), { ping: 1 });
254+
256255
return {
257256
client: Object.assign(client, {
258257
async [createClonedClient]() {

0 commit comments

Comments
 (0)