Make rpc.dispatcher private
This is just an implementation detail of the public EventletRPCServer and BlockingRPCServer classes. This is important because I'm not sure we've got the right separation of concerns between executors and dispatchers yet: http://lists.openstack.org/pipermail/openstack-dev/2013-June/009934.html That implies that you need to pair a tulip-aware executor with a tulip-aware dispatcher. We'll probably need to do something similar for eventlet too. I think we need the RPC dispatcher to just know about RPC specific stuff and there's a single abstraction for I/O framework integration.
This commit is contained in:
parent
101846c71b
commit
b44541e617
|
@ -15,7 +15,7 @@
|
|||
|
||||
from openstack.common.messaging import _server
|
||||
from openstack.common.messaging._executors import impl_blocking
|
||||
from openstack.common.messaging.rpc import dispatcher
|
||||
from openstack.common.messaging.rpc import _dispatcher
|
||||
|
||||
|
||||
class _RPCServer(_server.MessageHandlingServer):
|
||||
|
@ -23,7 +23,7 @@ class _RPCServer(_server.MessageHandlingServer):
|
|||
def __init__(self, transport, target, endpoints, executor_cls):
|
||||
super(_RPCServer, self).__init__(transport,
|
||||
target,
|
||||
dispatcher.RPCDispatcher(endpoints),
|
||||
_dispatcher.RPCDispatcher(endpoints),
|
||||
executor_cls)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue