Use threading in OsloRPCServer

Use threading instead of eventlet when creating a new OsloRPCServer

Change-Id: I8a44779c9ffacc25ab50fd5a49dc76a887818ec5
Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
This commit is contained in:
Arnaud M 2024-12-10 00:21:42 +01:00
parent ab6a5c23b7
commit 7d5a1d71aa
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ class RPCServer(object):
raise NotImplementedError
@abc.abstractmethod
def run(self, executor='eventlet'):
def run(self, executor='threading'):
"""Runs the RPC server.
:param executor: Executor used to process incoming requests. Different

View File

@ -35,7 +35,7 @@ class OsloRPCServer(rpc.RPCServer):
def register_endpoint(self, endpoint):
self.endpoints.append(endpoint)
def run(self, executor='eventlet'):
def run(self, executor='threading'):
target = messaging.Target(
topic=self.topic,
server=self.server_id