diff options
| author | termie <github@anarkystic.com> | 2011-05-26 15:08:53 -0700 |
|---|---|---|
| committer | termie <github@anarkystic.com> | 2011-05-26 15:08:53 -0700 |
| commit | d7e0b45a9bc415e87beee32f10c8d6bdff9819ed (patch) | |
| tree | a1feb6f79ae505a3abd60d401b01a70789edfe8b /nova/service.py | |
| parent | feb04f0117450bcd6e8f4966f4487575073be41c (diff) | |
| download | nova-d7e0b45a9bc415e87beee32f10c8d6bdff9819ed.tar.gz nova-d7e0b45a9bc415e87beee32f10c8d6bdff9819ed.tar.xz nova-d7e0b45a9bc415e87beee32f10c8d6bdff9819ed.zip | |
changes per review
Diffstat (limited to 'nova/service.py')
| -rw-r--r-- | nova/service.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/nova/service.py b/nova/service.py index 782183322..74f9f04d8 100644 --- a/nova/service.py +++ b/nova/service.py @@ -105,19 +105,18 @@ class Service(object): connection=self.conn, topic=self.topic, proxy=self) - - cset = rpc.ConsumerSet(self.conn, [consumer_all, - consumer_node, - fanout]) + consumer_set = rpc.ConsumerSet( + connection=self.conn, + consumer_list=[consumer_all, consumer_node, fanout]) # Wait forever, processing these consumers def _wait(): try: - cset.wait() + consumer_set.wait() finally: - cset.close() + consumer_set.close() - self.csetthread = greenthread.spawn(_wait) + self.consumer_set_thread = greenthread.spawn(_wait) if self.report_interval: pulse = utils.LoopingCall(self.report_state) @@ -182,9 +181,9 @@ class Service(object): logging.warn(_('Service killed that has no database entry')) def stop(self): - self.csetthread.kill() + self.consumer_set_thread.kill() try: - self.csetthread.wait() + self.consumer_set_thread.wait() except greenlet.GreenletExit: pass for x in self.timers: |
