Skip to content

Commit 7d0f710

Browse files
authored
Use MsgPack extension to be compatible to zerorpc.io
Fix compatibility issue with https://zerorpc.io and Python 3
1 parent 8a8e3ca commit 7d0f710

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (e *Event) packBytes() ([]byte, error) {
4949

5050
var buf []byte
5151

52-
enc := codec.NewEncoderBytes(&buf, &codec.MsgpackHandle{})
52+
enc := codec.NewEncoderBytes(&buf, &codec.MsgpackHandle{WriteExt:true})
5353
if err := enc.Encode(data); err != nil {
5454
return nil, err
5555
}

0 commit comments

Comments
 (0)