Skip to content

Commit 0c9adba

Browse files
cleanup incorrect comments
1 parent ee08eb8 commit 0c9adba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

optimizely/event/event_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def start(self):
175175
self.executor.start()
176176

177177
def _run(self):
178-
""" Triggered as part of the thread which batches events or flushes event_queue and sleeps
179-
periodically if queue is empty.
178+
""" Triggered as part of the thread which batches events or flushes event_queue and hangs on get
179+
for flush interval if queue is empty.
180180
"""
181181
try:
182182
while True:
@@ -221,7 +221,7 @@ def flush(self):
221221
self.event_queue.put(self._FLUSH_SIGNAL)
222222

223223
def _flush_batch(self):
224-
""" Flushes event_queue by dispatching events. """
224+
""" Flushes current batch by dispatching event. """
225225
batch_len = len(self._current_batch)
226226
if batch_len == 0:
227227
self.logger.debug('Nothing to flush.')

0 commit comments

Comments
 (0)