Don't run branch reader in bg thread

This commit is contained in:
Nuno Campos
2025-04-11 16:20:45 -07:00
parent 41bb20ee5e
commit dfbf0ddbcb
+1 -2
View File
@@ -1,4 +1,3 @@
import asyncio
from inspect import (
isfunction,
ismethod,
@@ -178,7 +177,7 @@ class Branch(NamedTuple):
],
) -> Runnable:
if reader:
value = await asyncio.to_thread(reader, config)
value = reader(config)
# passthrough additional keys from node to branch
# only doable when using dict states
if (