From 84ba7d775a7356bc62e0ce5eec9190d3f163c056 Mon Sep 17 00:00:00 2001 From: Josh Warwick Date: Tue, 16 May 2023 17:46:23 +0100 Subject: [PATCH] Remove unused path --- graphene_django/fields.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/graphene_django/fields.py b/graphene_django/fields.py index db846b9..ce50d0b 100644 --- a/graphene_django/fields.py +++ b/graphene_django/fields.py @@ -293,19 +293,6 @@ class DjangoConnectionField(ConnectionField): iterable = default_manager # thus the iterable gets refiltered by resolve_queryset # but iterable might be promise - - if is_running_async(): - - async def perform_resolve(iterable): - iterable = await sync_to_async(queryset_resolver)( - connection, iterable, info, args - ) - return await sync_to_async(cls.resolve_connection)( - connection, args, iterable, max_limit=max_limit - ) - - return perform_resolve(iterable) - iterable = queryset_resolver(connection, iterable, info, args) return cls.resolve_connection(connection, args, iterable, max_limit=max_limit)