Merge "Remove monotonic usage"
This commit is contained in:
commit
60a72305bd
|
@ -37,7 +37,6 @@ linecache2==1.0.0
|
|||
Mako==1.0.7
|
||||
MarkupSafe==1.0
|
||||
microversion-parse==0.2.1
|
||||
monotonic==1.4
|
||||
mox3==0.25.0
|
||||
msgpack==0.5.6
|
||||
netaddr==0.7.19
|
||||
|
|
|
@ -41,17 +41,6 @@ LOG = logging.getLogger(__name__)
|
|||
CONF = masakari.conf.CONF
|
||||
|
||||
|
||||
def assert_eventlet_uses_monotonic_clock():
|
||||
import eventlet.hubs as hubs
|
||||
import monotonic
|
||||
|
||||
hub = hubs.get_hub()
|
||||
if hub.clock is not monotonic.monotonic:
|
||||
raise RuntimeError(
|
||||
'eventlet hub is not using a monotonic clock - '
|
||||
'periodic tasks will be affected by drifts of system time.')
|
||||
|
||||
|
||||
class Service(service.Service):
|
||||
"""Service object for binaries running on hosts.
|
||||
|
||||
|
@ -89,7 +78,6 @@ class Service(service.Service):
|
|||
}
|
||||
|
||||
def start(self):
|
||||
assert_eventlet_uses_monotonic_clock()
|
||||
verstr = version.version_string_with_package()
|
||||
LOG.info('Starting %(topic)s (version %(version)s)', {
|
||||
'topic': self.topic,
|
||||
|
|
Loading…
Reference in New Issue