Open jalvespinto opened 1 year ago
Shouldn't self.body = body if isinstance(body, bytes) else bytes(body) use something like _as_bytes instead of bytes?
self.body = body if isinstance(body, bytes) else bytes(body)
_as_bytes
bytes
You could take a look at class JsonRPC(RPC): in aio_pika/patterns/rpc.py Where you can pass json directly.
class JsonRPC(RPC):
aio_pika/patterns/rpc.py
Shouldn't
self.body = body if isinstance(body, bytes) else bytes(body)
use something like_as_bytes
instead ofbytes
?