remove unneeded Error field from broker.Message

close github.com/unistack-org/micro-roadmap/issues/26 (#3)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-11-02 23:45:41 +03:00 committed by GitHub
parent a9eff06976
commit e6ab6d50eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,9 +32,8 @@ type Event interface {
// Message is used to transfer data
type Message struct {
Header map[string]string
Body []byte
Error error
Header map[string]string // contains message metadata
Body []byte // contains message body
}
// Subscriber is a convenience return type for the Subscribe method