@xyo-network/xl1-protocol-sdk 1.20.2 → 1.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/neutral/index.mjs
CHANGED
|
@@ -2214,7 +2214,7 @@ async function withContextCacheResponse(context, name, key, func, { max = 1e4 }
|
|
|
2214
2214
|
if (isDefined13(cacheResult)) {
|
|
2215
2215
|
return cacheResult;
|
|
2216
2216
|
}
|
|
2217
|
-
const result = timeBudgetLimit > 0 ?
|
|
2217
|
+
const result = timeBudgetLimit > 0 ? timeBudget(name, context.logger, func, timeBudgetLimit) : func();
|
|
2218
2218
|
await cache.set(key, result);
|
|
2219
2219
|
return result;
|
|
2220
2220
|
}
|