master: send_await() always unpickles now.
This commit is contained in:
parent
a6c97aad84
commit
be2264f4c1
|
@ -744,10 +744,9 @@ class ChildIdAllocator(object):
|
||||||
|
|
||||||
def allocate(self):
|
def allocate(self):
|
||||||
master = Context(self.router, 0)
|
master = Context(self.router, 0)
|
||||||
reply = master.send_await(
|
return master.send_await(
|
||||||
mitogen.core.Message(dst_id=0, handle=mitogen.core.ALLOCATE_ID)
|
mitogen.core.Message(dst_id=0, handle=mitogen.core.ALLOCATE_ID)
|
||||||
)
|
)
|
||||||
return reply.unpickle()
|
|
||||||
|
|
||||||
|
|
||||||
class Router(mitogen.core.Router):
|
class Router(mitogen.core.Router):
|
||||||
|
|
Loading…
Reference in New Issue