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', self.target = messaging.Target(topic='testtopic',
server=transport.conf.host, server=transport.conf.host,
version='2.5') version='2.5')
self._server = messaging.rpc_server.get_rpc_server(transport, self._server = messaging.get_rpc_server(transport,
self.target, self.target,
[self]) [self])
super(Server, self).__init__() super(Server, self).__init__()
def start(self): def start(self):

View File

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