Bläddra i källkod

Cache transport for WSGI service

Gabriel Adrian Samfira 4 år sedan
förälder
incheckning
bdccd39771
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      coriolis/service.py

+ 3 - 1
coriolis/service.py

@@ -98,7 +98,9 @@ def check_locks_dir_empty():
 
 
 class WSGIService(service.ServiceBase):
-    def __init__(self, name, worker_count=None):
+    def __init__(self, name, worker_count=None, init_rpc=True):
+        if init_rpc:
+            rpc.init()
         self._host = CONF.api_migration_listen
         self._port = CONF.api_migration_listen_port