issue #212: service: make call_async kwargs optional.

pull/237/head
David Wilson 7 years ago
parent afe983d6c9
commit 5e6e56f0c5

@ -369,10 +369,10 @@ class Pool(object):
) )
def call_async(context, handle, method, kwargs): def call_async(context, handle, method, kwargs=None):
LOG.debug('service.call_async(%r, %r, %r, %r)', LOG.debug('service.call_async(%r, %r, %r, %r)',
context, handle, method, kwargs) context, handle, method, kwargs)
pair = (method, kwargs) pair = (method, kwargs or {})
msg = mitogen.core.Message.pickled(pair, handle=handle) msg = mitogen.core.Message.pickled(pair, handle=handle)
return context.send_async(msg) return context.send_async(msg)

Loading…
Cancel
Save