Skip to content

Commit c2f9287

Browse files
committed
format
1 parent 4ea941d commit c2f9287

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def _get_ack_errors(
214214
return info.metadata
215215
return None
216216

217+
217218
def _process_requests(
218219
error_status: Optional["status_pb2.Status"],
219220
ack_reqs_dict: Dict[str, requests.AckRequest],
@@ -231,9 +232,9 @@ def _process_requests(
231232
requests_to_retry = []
232233
for ack_id in ack_reqs_dict:
233234
# Debug logging: slow acks
234-
if ack_histogram and ack_reqs_dict[ack_id].time_to_ack > ack_histogram.percentile(
235-
percent=99
236-
):
235+
if ack_histogram and ack_reqs_dict[
236+
ack_id
237+
].time_to_ack > ack_histogram.percentile(percent=99):
237238
_SLOW_ACK_LOGGER.debug(
238239
"Message (id=%s, ack_id=%s) ack duration of %s s is higher than the p99 ack duration",
239240
ack_reqs_dict[ack_id].message_id,

0 commit comments

Comments
 (0)