Skip to content

Commit

Permalink
fix: synchronous resource registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Oct 25, 2022
1 parent e50d2a3 commit 8ff6d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nitric/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8ff6d78

Please sign in to comment.