Revert to sync validation on node def for better performance (#297)

This commit is contained in:
Chenlei Hu
2024-08-04 11:02:54 -04:00
committed by GitHub
parent 0210c7f438
commit c48f68e53e
3 changed files with 13 additions and 15 deletions

View File

@@ -249,7 +249,7 @@ class ComfyApi extends EventTarget {
const objectInfoUnsafe = await resp.json()
const objectInfo: Record<string, ComfyNodeDef> = {}
for (const key in objectInfoUnsafe) {
const validatedDef = await validateComfyNodeDef(
const validatedDef = validateComfyNodeDef(
objectInfoUnsafe[key],
/* onError=*/ (errorMessage: string) => {
console.warn(