always hand bytes() to protobuf
This commit is contained in:
parent
47dd2a0bdf
commit
60480d02ea
|
@ -14,7 +14,7 @@ import resource
|
||||||
def WRAP(MESSAGE, TYPE):
|
def WRAP(MESSAGE, TYPE):
|
||||||
wrap = protocol_pb2.WrapperMessage()
|
wrap = protocol_pb2.WrapperMessage()
|
||||||
wrap.type = TYPE
|
wrap.type = TYPE
|
||||||
wrap.payload = MESSAGE
|
wrap.payload = bytes(MESSAGE)
|
||||||
return wrap.SerializeToString()
|
return wrap.SerializeToString()
|
||||||
|
|
||||||
class SpectrumBackend:
|
class SpectrumBackend:
|
||||||
|
|
Loading…
Reference in a new issue