File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class ConnectClusterTool extends AtlasToolBase {
201
201
for ( let i = 0 ; i < 60 ; i ++ ) {
202
202
const state = await this . queryConnection ( projectId , clusterName ) ;
203
203
switch ( state ) {
204
- case "connected" :
204
+ case "connected" : {
205
205
return {
206
206
content : [
207
207
{
@@ -210,12 +210,14 @@ export class ConnectClusterTool extends AtlasToolBase {
210
210
} ,
211
211
] ,
212
212
} ;
213
- case "connecting" :
213
+ }
214
+ case "connecting" : {
214
215
break ;
216
+ }
215
217
case "connected-to-other-cluster" :
216
218
case "disconnected" :
217
219
case "unknown" :
218
- default :
220
+ default : {
219
221
await this . session . disconnect ( ) ;
220
222
const connectionString = await this . prepareClusterConnection ( projectId , clusterName ) ;
221
223
@@ -229,6 +231,7 @@ export class ConnectClusterTool extends AtlasToolBase {
229
231
) ;
230
232
} ) ;
231
233
break ;
234
+ }
232
235
}
233
236
234
237
await sleep ( 500 ) ;
You can’t perform that action at this time.
0 commit comments