service: make service list optional.

Used by the new work.
pull/564/head
David Wilson 7 years ago
parent 79af8ef680
commit ae8ba24f59

@ -451,7 +451,7 @@ class Pool(object):
""" """
activator_class = Activator activator_class = Activator
def __init__(self, router, services, size=1, overwrite=False): def __init__(self, router, services=(), size=1, overwrite=False):
self.router = router self.router = router
self._activator = self.activator_class() self._activator = self.activator_class()
self._ipc_latch = mitogen.core.Latch() self._ipc_latch = mitogen.core.Latch()

Loading…
Cancel
Save