Skip to content

Commit

Permalink
fix lint 2
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewqian2001datadog committed Jul 23, 2024
1 parent 572c1f3 commit cdca124
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datadog/dogstatsd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ def __init__(

self._reset_buffer()

# This lock is used for all cases where client configuration is being changed: buffering, aggregation sender mode.
# This lock is used for all cases where client configuration is being changed: buffering,
# aggregation, sender mode.
self._config_lock = RLock()

self._disable_buffering = disable_buffering
Expand All @@ -457,7 +458,8 @@ def __init__(
self._buffer_flush_interval = buffer_flush_interval
self._batching_flush_thread_stop = threading.Event()
self._send = self._send_to_buffer
# We make the _batching_flush_thread and _aggregation_flush_thread a list so that it is a mutable object, which allows us to mutate it in the
# We make the _batching_flush_thread and _aggregation_flush_thread a list so that it is a mutable object,
# which allows us to mutate it in the
# _start_flush_thread function
self._batching_flush_thread = [None]
self._start_flush_thread(
Expand Down

0 comments on commit cdca124

Please sign in to comment.