feat: Call user events endpoint when indexing 3rd party HSs#726
Draft
feat: Call user events endpoint when indexing 3rd party HSs#726
Conversation
…HS from run_all - NexusWatcher::start now spawns 3 parallel tokio tasks: 1. Default homeserver processing (run_default_homeserver) 2. Other homeservers processing (run_all, excluding default HS) 3. Reserved for future use (TODO placeholder) - Added run_default_homeserver to TEventProcessorRunner trait - Modified homeservers_by_priority to exclude the default homeserver - Added Send + Sync bounds to TEventProcessorRunner trait - Updated all tests and rustdocs Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
…match Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
Fix pkarr version mismatch in PubkyId conversion
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates HS indexing logic to rely on the new user events endpoint on the HS.
This PR acts as an "umbrella PR" for this DX feature. It is meant to contain all relevant changes and sub-PRs. It will remain a draft until the full feature is ready for final review.
Steps:
pubkyto relevant feature branch (done in 6a06e9c)EventStreamBuilder.event_stream_for()andEventStreamBuilder.add_users()pubky-core#311pubkyto relevant released version (pending SDK release)NexusWatcher::startto start 3 threads, each with owntick: index default HS, index other HSs, resolve user-to-HS mappings