Skip to content

Commit

Permalink
Fix restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-marquez-csa committed Nov 14, 2024
1 parent 837274d commit 41ffddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/mdns_discovery/mdns_async_service_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ async def async_request(
this_question_type = question_type or DNSQuestionType.QU if first_request else DNSQuestionType.QM
out: DNSOutgoing = self._generate_request_query(this_question_type, record_type)
first_request = False

if out.questions:
zc.async_send(out, addr, port)
next_ = now + delay
next_ += randint(*_AVOID_SYNC_DELAY_RANDOM_INTERVAL)

if this_question_type is DNSQuestionType.QM and delay < _DUPLICATE_QUESTION_INTERVAL:
delay = _DUPLICATE_QUESTION_INTERVAL

Expand Down

0 comments on commit 41ffddc

Please sign in to comment.