summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-02 18:07:15 +0300
committerValery Piashchynski <[email protected]>2021-06-02 18:07:15 +0300
commit872001b24802be9cf8bc2c0ef7fd71f881aaaad0 (patch)
tree25fc4d0031e934b851ade6cbd25c17251f55891c
parent12c031ce76c505128ebf9daafa91952855f202d4 (diff)
- Remove redundand binary marshaler for the flatbuffers
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--pkg/pubsub/message.go9
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)
-}