summaryrefslogtreecommitdiff
path: root/oslo_messaging/rpc/__init__.py
diff options
context:
space:
mode:
authorTobias Urdin <tobias.urdin@binero.com>2022-10-22 12:55:34 +0200
committerTobias Urdin <tobias.urdin@binero.se>2022-10-25 11:42:40 +0000
commit4ead7cb2dcf376032f7bf9532a375256db6d3784 (patch)
tree3790b3b191521ae444484522c6ff0ad5794b6133 /oslo_messaging/rpc/__init__.py
parente5e70a5d894b576b3de705c5f55f9704bb8e593e (diff)
downloadoslo-messaging-4ead7cb2dcf376032f7bf9532a375256db6d3784.tar.gz
Implement get_rpc_client function
We already expose functions to handle the instantiation of classes such as RPCServer and RPCTransport but the same was never done for RPCClient so the API is inconsistent in its enforcement. This adds a get_rpc_client function that should be used instead of instatiating the RPCClient class directly to be more consistent. This also allows to handle more logic inside the function in the future such as if implementations for an async client is implemented, as investigation in [1] has shown. [1] https://review.opendev.org/c/openstack/oslo.messaging/+/858936 Change-Id: Ia4d1f0497b9e2728bde02f4ff05fdc175ddffe66
Diffstat (limited to 'oslo_messaging/rpc/__init__.py')
-rw-r--r--oslo_messaging/rpc/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/oslo_messaging/rpc/__init__.py b/oslo_messaging/rpc/__init__.py
index 9a320a8..135428e 100644
--- a/oslo_messaging/rpc/__init__.py
+++ b/oslo_messaging/rpc/__init__.py
@@ -30,6 +30,7 @@ __all__ = [
'expected_exceptions',
'get_rpc_transport',
'get_rpc_server',
+ 'get_rpc_client',
'expose'
]