Skip to content

Commit 9b61336

Browse files
committed
polish
1 parent 4e7f9d4 commit 9b61336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splitio/models/telemetry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ class MethodLatencies(MethodLatenciesBase):
180180
def __init__(self):
181181
"""Constructor"""
182182
self._lock = threading.RLock()
183-
self._reset_all()
183+
with self._lock:
184+
self._reset_all()
184185

185186
def add_latency(self, method, latency):
186187
"""
@@ -1269,7 +1270,6 @@ class StreamingEvents(object):
12691270
Streaming events class
12701271
12711272
"""
1272-
12731273
def __init__(self):
12741274
"""Constructor"""
12751275
self._lock = threading.RLock()

0 commit comments

Comments
 (0)