Skip to content

Commit b7144f0

Browse files
committed
private
1 parent 95d5c9e commit b7144f0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/core/src/shared/utilities/resourceCache.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export abstract class CachedResource<V> {
6868
return latest
6969
}
7070

71-
async readResourceAndLock(): Promise<GlobalStateSchema<V> | undefined> {
71+
private async readResourceAndLock(): Promise<GlobalStateSchema<V> | undefined> {
7272
const _acquireLock = async () => {
7373
const cachedValue = this.readCacheOrDefault()
7474

@@ -97,13 +97,6 @@ export abstract class CachedResource<V> {
9797
return lock
9898
}
9999

100-
async releaseLock() {
101-
await globals.globalState.update(this.key, {
102-
...this.readCacheOrDefault(),
103-
locked: false,
104-
})
105-
}
106-
107100
private async updateCache(cache: GlobalStateSchema<any> | undefined, resource: Resource<any>) {
108101
await globals.globalState.update(this.key, {
109102
...(cache ? cache : this.readCacheOrDefault()),

0 commit comments

Comments
 (0)