From 546e1b2fa3040de436e81f8e134d6fffb5e0d1d2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 4 Nov 2021 10:41:25 -0400 Subject: [PATCH] Drop unecessary partial --- docs/README.rst | 9 +-------- examples/quick_cluster.py | 8 +------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/docs/README.rst b/docs/README.rst index 0d474fd..842cbcd 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -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) diff --git a/examples/quick_cluster.py b/examples/quick_cluster.py index 7ced773..ca692a9 100644 --- a/examples/quick_cluster.py +++ b/examples/quick_cluster.py @@ -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)