Skip to content

Commit

Permalink
fix missing pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Apr 14, 2020
1 parent 1134ea5 commit c787fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/proto/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type Message struct {
Data []byte
}

func (m Message) MarshalJSON() ([]byte, error) {
func (m *Message) MarshalJSON() ([]byte, error) {
return m.Data, nil
}

Expand Down

0 comments on commit c787fd0

Please sign in to comment.