diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-06-24 04:12:00 +0100 |
|---|---|---|
| committer | andy <github@anarkystic.com> | 2010-06-24 04:12:00 +0100 |
| commit | bace12d17abcbb0a972e4e29cc4275925bb03153 (patch) | |
| tree | be41c8553e2fea65e2c3f1c87810bcd0c266b11c | |
| parent | 9cf1fe03b121db1682dda4941b4d4b6d010829b4 (diff) | |
| download | nova-bace12d17abcbb0a972e4e29cc4275925bb03153.tar.gz nova-bace12d17abcbb0a972e4e29cc4275925bb03153.tar.xz nova-bace12d17abcbb0a972e4e29cc4275925bb03153.zip | |
message checking callbacks only need to run 10 times a second
| -rw-r--r-- | nova/rpc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/rpc.py b/nova/rpc.py index ca622daef..711aad9fa 100644 --- a/nova/rpc.py +++ b/nova/rpc.py @@ -68,7 +68,7 @@ class Consumer(messaging.Consumer): io_inst = ioloop.IOLoop.instance() injected = ioloop.PeriodicCallback( - lambda: self.fetch(enable_callbacks=True), 1, io_loop=io_inst) + lambda: self.fetch(enable_callbacks=True), 100, io_loop=io_inst) injected.start() return injected @@ -80,7 +80,7 @@ class Consumer(messaging.Consumer): def attach_to_twisted(self): loop = task.LoopingCall(self.fetch, enable_callbacks=True) - loop.start(interval=0.01) + loop.start(interval=0.1) class Publisher(messaging.Publisher): pass |
