Skip to content

Commit e3e5f77

Browse files
committed
🥅 remove cached state fallback for fresh value
1 parent a780663 commit e3e5f77

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

‎src/cache/storage-cache.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,6 @@ export class StorageCache implements ContactCache {
167167
} catch (error) {
168168
this.log(`[${anonymizeKey(key)}] Error while refreshing value`, error);
169169
throw error;
170-
} finally {
171-
//in any case we need to reset the cacheItemState to prevent loop of fetching state
172-
await this.storage.set<CacheItemState>(this.getCacheItemKey(key), {
173-
state: CacheItemStateType.CACHED,
174-
updated: Date.now(),
175-
});
176170
}
177171
}
178172

0 commit comments

Comments
 (0)