Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement events streaming #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Implement events streaming #2

wants to merge 3 commits into from

Conversation

roeierez
Copy link
Member

No description provided.

@roeierez roeierez marked this pull request as ready for review July 24, 2024 11:47
Copy link

@dangeross dangeross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

syncer_server.go Outdated
@@ -24,13 +47,18 @@ func (s *PersistentSyncerServer) SetRecord(c context.Context, msg *proto.SetReco
}
return nil, err
}
s.eventsManager.notifyChange(c.Value(middleware.USER_PUBKEY_CONTEXT_KEY).(string), msg.Record)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here the msg.Record.Version is the existing record version, which is then being sent to the stream. Should we emit the Record with the newVersion? Then the client knows the latest version

@dangeross dangeross self-requested a review July 25, 2024 07:39
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.

2 participants