Skip to content

Commit 9ff88ed

Browse files
committed
address copilot comment
1 parent 114c745 commit 9ff88ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/atlas/connect/connectCluster.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import type { AtlasClusterConnectionInfo } from "../../../common/connectionManag
1010
import { getDefaultRoleFromConfig } from "../../../common/atlas/roles.js";
1111

1212
const EXPIRY_MS = 1000 * 60 * 60 * 12; // 12 hours
13+
const addedIpAccessListMessage =
14+
"Note: Your current IP address has been added to the Atlas project's IP access list to enable secure connection.";
1315

1416
function sleep(ms: number): Promise<void> {
1517
return new Promise((resolve) => setTimeout(resolve, ms));
@@ -208,7 +210,7 @@ export class ConnectClusterTool extends AtlasToolBase {
208210
if (ipAccessListUpdated) {
209211
content.push({
210212
type: "text",
211-
text: `Note: Your current IP address has been added to the Atlas project's IP access list to enable secure connection.`,
213+
text: addedIpAccessListMessage,
212214
});
213215
}
214216

@@ -258,7 +260,7 @@ export class ConnectClusterTool extends AtlasToolBase {
258260
if (ipAccessListUpdated) {
259261
content.push({
260262
type: "text" as const,
261-
text: `Note: Your current IP address has been added to the Atlas project's IP access list to enable secure connection.`,
263+
text: addedIpAccessListMessage,
262264
});
263265
}
264266

0 commit comments

Comments
 (0)