Skip to content

Commit

Permalink
moved set_flow_control_status out of lock
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Dec 12, 2023
1 parent 918b5b9 commit d167267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/bigtable/batcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def control_flow(self, batch_info):
with self._lock:
self.inflight_mutations += batch_info.mutations_count
self.inflight_size += batch_info.mutations_size
self.set_flow_control_status()
self.set_flow_control_status()

def wait(self):
"""
Expand All @@ -159,7 +159,7 @@ def release(self, batch_info):
with self._lock:
self.inflight_mutations -= batch_info.mutations_count
self.inflight_size -= batch_info.mutations_size
self.set_flow_control_status()
self.set_flow_control_status()


class MutationsBatcher(object):
Expand Down

0 comments on commit d167267

Please sign in to comment.