mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-02 05:15:44 +00:00
bring back EventSubscriber
This commit is contained in:
@@ -59,6 +59,10 @@ type Message struct {
|
||||
tags map[string]string
|
||||
}
|
||||
|
||||
func NewMessage(data interface{}, tags map[string]string) Message {
|
||||
return Message{data, tags}
|
||||
}
|
||||
|
||||
// Data returns an original data published.
|
||||
func (msg Message) Data() interface{} {
|
||||
return msg.data
|
||||
|
||||
Reference in New Issue
Block a user