Bläddra i källkod

Removed the server.run() method in favor of a more consistent experience between client and server

The old server.run() method would also not respect arguments like http_port and friends.

Signed-off-by: Stan Janssen <stan.janssen@elaad.nl>
Stan Janssen 4 år sedan
förälder
incheckning
c94e407d3a
1 ändrade filer med 1 tillägg och 10 borttagningar
  1. 1 10
      openleadr/server.py

+ 1 - 10
openleadr/server.py

@@ -120,16 +120,7 @@ class OpenADRServer:
         VTNService.fingerprint_lookup = staticmethod(fingerprint_lookup)
         self.__setattr__ = self.add_handler
 
-    def run(self):
-        """
-        Starts the asyncio-loop and runs the server in it. This function is
-        blocking. For other ways to run the server in a more flexible context,
-        please refer to the `aiohttp documentation
-        <https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-app-runners>`_.
-        """
-        web.run_app(self.app)
-
-    async def run_async(self):
+    async def run(self):
         """
         Starts the server in an already-running asyncio loop.
         """