diff --git a/crossplane/function/runtime.py b/crossplane/function/runtime.py index a6e465e..827460a 100644 --- a/crossplane/function/runtime.py +++ b/crossplane/function/runtime.py @@ -99,6 +99,7 @@ def serve( loop = asyncio.get_event_loop() except RuntimeError: loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) server = grpc.aio.server(options=options)