Remove accidental use of messaging.rpc_server

Hmm, maybe this means we should use __all__ to avoid exporting these
imports.
This commit is contained in:
Mark McLoughlin 2013-06-17 22:48:43 +01:00
parent 5cd662a517
commit 2f4d53921f
2 changed files with 7 additions and 7 deletions

View File

@ -19,9 +19,9 @@ class Server(object):
self.target = messaging.Target(topic='testtopic',
server=transport.conf.host,
version='2.5')
self._server = messaging.rpc_server.get_rpc_server(transport,
self.target,
[self])
self._server = messaging.get_rpc_server(transport,
self.target,
[self])
super(Server, self).__init__()
def start(self):

View File

@ -23,10 +23,10 @@ class Server(object):
self.target = messaging.Target(topic='testtopic',
server=transport.conf.host,
version='2.5')
self._server = messaging.rpc_server.get_rpc_server(transport,
self.target,
[self],
executor='eventlet')
self._server = messaging.get_rpc_server(transport,
self.target,
[self],
executor='eventlet')
super(Server, self).__init__()
def start(self):