Skip to content

add separate discovery interval to stitch-p2p swarm - #35

Merged
fabracht merged 1 commit into
mainfrom
stitch-p2p-discovery-interval
Oct 12, 2026
Merged

fabracht merged 1 commit into
mainfrom
stitch-p2p-discovery-interval

Conversation

@fabracht

Copy link
Copy Markdown
Contributor

The Swarm's connect loop polled the broker for peers at the sync pull interval, so a short pull interval (200 ms in c2-fusion) also meant five broker queries per second. Adds Swarm::spawn_with_discovery_interval(peer, node, pull, discovery); Swarm::spawn delegates with discovery equal to pull, so existing callers are unchanged. stitch-p2p 0.1.1. The broker test now runs both entry points against a real mqdb (the new case uses a 3 s discovery interval).

@fabracht
fabracht merged commit bf127b8 into main Oct 12, 2026
6 checks passed
@fabracht
fabracht deleted the stitch-p2p-discovery-interval branch October 12, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant