From 8ff6d78245d591b12e8e316e98b84925abde8e5e Mon Sep 17 00:00:00 2001 From: Tim Holm Date: Tue, 25 Oct 2022 15:49:34 +1100 Subject: [PATCH] fix: synchronous resource registration. --- nitric/resources/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitric/resources/base.py b/nitric/resources/base.py index d0ba848..f70cb21 100644 --- a/nitric/resources/base.py +++ b/nitric/resources/base.py @@ -54,6 +54,6 @@ def make(cls: Type[T], name: str) -> T: r._reg = loop.create_task(r._register()) except RuntimeError: loop = asyncio.get_event_loop() - loop.run_until_complete(r._reg) + loop.run_until_complete(r._register()) return r