mirror of
https://github.com/xcat2/confluent.git
synced 2026-03-27 04:33:28 +00:00
Amend structure of AsyncMessage
This is an easier structure to traverse for a client.
This commit is contained in:
@@ -850,8 +850,9 @@ class AsyncMessage(ConfluentMessage):
|
||||
self.msgpair = pair
|
||||
|
||||
def raw(self):
|
||||
return {'requestid': self.msgpair[0],
|
||||
'response': self.msgpair[1].raw()}
|
||||
return {'asyncresponse':
|
||||
{'requestid': self.msgpair[0],
|
||||
'response': self.msgpair[1].raw()}}
|
||||
|
||||
class AsyncSession(ConfluentMessage):
|
||||
def __init__(self, id):
|
||||
|
||||
Reference in New Issue
Block a user