diff --git a/requirements.txt b/requirements.txt index 5eaf3fc..bc5a715 100644 --- a/requirements.txt +++ b/requirements.txt @@ -41,7 +41,6 @@ MarkupSafe==2.1.3 mccabe==0.6.1 mistune==0.8.4 mock==2.0.0 -monotonic==1.6 multidict==5.1.0 packaging==21.0 pbr==5.11.1 diff --git a/segment/analytics/consumer.py b/segment/analytics/consumer.py index a78f2d3..1c47157 100644 --- a/segment/analytics/consumer.py +++ b/segment/analytics/consumer.py @@ -1,6 +1,6 @@ import logging +import time from threading import Thread -import monotonic import backoff import json @@ -88,11 +88,11 @@ def next(self): queue = self.queue items = [] - start_time = monotonic.monotonic() + start_time = time.monotonic() total_size = 0 while len(items) < self.upload_size: - elapsed = monotonic.monotonic() - start_time + elapsed = time.monotonic() - start_time if elapsed >= self.upload_interval: break try: diff --git a/setup.py b/setup.py index 0f3da9e..8f8edfe 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,6 @@ install_requires = [ "requests~=2.7", - "monotonic~=1.5", "backoff~=2.1", "python-dateutil~=2.2" ]