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

internal/grpcsync: Provide an internal-only pub-sub type API #6167

Merged
merged 17 commits into from
Jun 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add some documentation
  • Loading branch information
my4-dev committed Apr 11, 2023
commit 85edc36b90ca7525c2105208f61dc800ba39db79
3 changes: 2 additions & 1 deletion internal/grpcsync/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 27,8 @@ import (
// a PubSub. It wraps the callback to be invoked by the PubSub when a new
// message is published.
type Subscriber interface {
// OnMessage is invoked to when a new message is published.
// OnMessage is invoked to when a new message is published. Implementations
easwars marked this conversation as resolved.
Show resolved Hide resolved
// must not block in this method.
OnMessage(msg interface{})
}

Expand Down