mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
Create a SendSync Interface for the Broadcast handler
This commit is contained in:
parent
5af377e56a
commit
29bd0319dc
2 changed files with 5 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ func (c *nopBroadcaster) SendAsync(pb proto.Message) error {
|
|||
// handle broadcast messages. (Hint: this is implemented by pilosa.Server)
|
||||
type BroadcastHandler interface {
|
||||
ReceiveMessage(pb proto.Message) error
|
||||
SendSync(pb proto.Message) error
|
||||
}
|
||||
|
||||
// BroadcastReceiver is the interface for the object which will listen for and
|
||||
|
|
|
|||
|
|
@ -103,3 +103,7 @@ func (h *SimpleBroadcastHandler) ReceiveMessage(pb proto.Message) error {
|
|||
h.receivedMessage = pb.(proto.Message)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (h *SimpleBroadcastHandler) SendSync(pb proto.Message) error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue