forked from goodboy/tractor
Drop unecessary partial
parent
94a6fefede
commit
546e1b2fa3
|
@ -321,8 +321,6 @@ spawn a flat cluster:
|
|||
|
||||
.. code:: python
|
||||
|
||||
from functools import partial
|
||||
|
||||
import trio
|
||||
import tractor
|
||||
|
||||
|
@ -353,12 +351,7 @@ spawn a flat cluster:
|
|||
):
|
||||
|
||||
for (name, portal) in portal_map.items():
|
||||
n.start_soon(
|
||||
partial(
|
||||
portal.run,
|
||||
sleepy_jane,
|
||||
)
|
||||
)
|
||||
n.start_soon(portal.run, sleepy_jane)
|
||||
|
||||
await trio.sleep(0.5)
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from functools import partial
|
||||
|
||||
import trio
|
||||
import tractor
|
||||
|
@ -30,12 +29,7 @@ async def main():
|
|||
):
|
||||
|
||||
for (name, portal) in portal_map.items():
|
||||
n.start_soon(
|
||||
partial(
|
||||
portal.run,
|
||||
sleepy_jane,
|
||||
)
|
||||
)
|
||||
n.start_soon(portal.run, sleepy_jane)
|
||||
|
||||
await trio.sleep(0.5)
|
||||
|
||||
|
|
Loading…
Reference in New Issue