Skip to content

Commit

Permalink
Sparsen some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Aug 4, 2020
1 parent 43b73c1 commit 0925fee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tractor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ async def _main(
"""Async entry point for ``tractor``.
"""
logger = log.get_logger('tractor')

main = partial(async_fn, *args)

arbiter_addr = (host, port) = arbiter_addr or (
_default_arbiter_host, _default_arbiter_port)
_default_arbiter_host,
_default_arbiter_port
)

loglevel = kwargs.get('loglevel', log.get_loglevel())
if loglevel is not None:
log._default_loglevel = loglevel
Expand Down Expand Up @@ -99,7 +104,9 @@ def run(
*args,
name: Optional[str] = None,
arbiter_addr: Tuple[str, int] = (
_default_arbiter_host, _default_arbiter_port),
_default_arbiter_host,
_default_arbiter_port,
),
# either the `multiprocessing` start method:
# https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
# OR `trio_run_in_process` (the new default).
Expand Down

0 comments on commit 0925fee

Please sign in to comment.