File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
packages/core/src/shared/utilities Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 ( ) ) ,
You can’t perform that action at this time.
0 commit comments