Skip to content

Commit 153c02c

Browse files
committed
patch
1 parent d002f66 commit 153c02c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/codewhisperer/region/regionProfileManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ export class RegionProfileManager {
286286
return
287287
}
288288

289+
await this.switchRegionProfile(previousSelected, 'reload')
290+
289291
// cross-validation
292+
// jitter of 0 ~ 5 second
290293
const jitterInSec = Math.floor(Math.random() * 6)
291294
const jitterInMs = jitterInSec * 1000
292295
setTimeout(async () => {
@@ -315,8 +318,6 @@ export class RegionProfileManager {
315318
result: 'Failed',
316319
})
317320
})
318-
319-
await this.switchRegionProfile(previousSelected, 'reload')
320321
}, jitterInMs)
321322
}
322323

0 commit comments

Comments
 (0)