File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
packages/core/src/codewhisperer/region Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ const endpoints = createConstantMap({
5050 */
5151export type ProfileSwitchIntent = 'user' | 'auth' | 'update' | 'reload'
5252
53- // Only "valid" state will have non null profiles
5453type CachedApiResultWithLock = {
5554 // Lock
5655 locked : boolean
@@ -145,9 +144,6 @@ export class RegionProfileManager {
145144 RegionProfileManager . logger . info ( `obtained cache lock %s` , cached )
146145
147146 const availableProfiles : RegionProfile [ ] = [ ]
148- // Load cache and use it directly if it's in "valid" state
149- // If it's pending, keep waiting until the ongoing pull finishes its job
150-
151147 const now = globals . clock . Date . now ( )
152148 if ( cached ?. result && now - cached . result . timestamp < 60000 ) {
153149 RegionProfileManager . logger . info (
You can’t perform that action at this time.
0 commit comments