diff options
author | Valery Piashchynski <[email protected]> | 2021-06-02 18:07:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-02 18:07:15 +0300 |
commit | 872001b24802be9cf8bc2c0ef7fd71f881aaaad0 (patch) | |
tree | 25fc4d0031e934b851ade6cbd25c17251f55891c | |
parent | 12c031ce76c505128ebf9daafa91952855f202d4 (diff) |
- Remove redundand binary marshaler for the flatbuffers
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | pkg/pubsub/message.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/pubsub/message.go b/pkg/pubsub/message.go index c17d153b..74348722 100644 --- a/pkg/pubsub/message.go +++ b/pkg/pubsub/message.go @@ -1,9 +1,5 @@ package pubsub -import ( - json "github.com/json-iterator/go" -) - type Message struct { // Command (join, leave, headers) Command string `json:"command"` @@ -17,8 +13,3 @@ type Message struct { // Payload to be broadcasted Payload []byte `json:"payload"` } - -// MarshalBinary needed to marshal message for the redis -func (m *Message) MarshalBinary() ([]byte, error) { - return json.Marshal(m) -} |