aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-07 21:31:10 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-07 21:31:10 +0200
commit92e6b9823119b5461efc304a81e79e186a928e6d (patch)
treea58a742140025b553b6872e3269ad54c3ac601b5 /packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py
parentd3bc50cca1c4dfe143c29a522b8cd57eb69ab92e (diff)
downloadmeshbay-92e6b9823119b5461efc304a81e79e186a928e6d.tar.gz
perf(node): list a group's directories off the event loop
Every full index walked all roots on the loop, and a node with several large roots stopped answering for seconds. Walk directories only, on the roots' disk thread; index_sync is spawned and still answers on failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py')
-rw-r--r--packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py b/packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py
index 4bf9dbb..a8b5767 100644
--- a/packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py
+++ b/packages/meshbay-node/src/meshbay_node/transport/webrtc/dispatch.py
@@ -18,7 +18,7 @@ MAX_PRE_PROOF_FETCHES = 4
# records it for every type.
SPAWNED, INLINE = True, False
_HANDLERS = {
- MNP.INDEX_SYNC: ("_do_index_sync", INLINE),
+ MNP.INDEX_SYNC: ("_do_index_sync", SPAWNED),
# Spawned rather than answered inline: the reply waits for room
# on the channel, and blocking the message loop for that would
# stop everything else this peer is doing — including the