0.10.0-2 Upload test
This commit is contained in:
1 parent
f628fdac50
commit
652731ae98
10 files changed
+14
-12
No files matched your search
@@ -58,12 +58,12 @@ async function requestCachedGet(path, options = {}) {
|
||||
|
||||
if (!forceRefresh && current && current.value !== undefined) {
|
||||
if (current.expiresAt > now) {
|
||||
return current.value;
|
||||
return Promise.resolve(current.value);
|
||||
}
|
||||
if (!current.promise) {
|
||||
void refreshCachedGet(path, ttlMs);
|
||||
}
|
||||
return current.value;
|
||||
return Promise.resolve(current.value);
|
||||
}
|
||||
|
||||
if (!forceRefresh && current?.promise) {
|
||||
|
||||
Reference in new issue
Block a user