We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73e3d18 commit fb529bcCopy full SHA for fb529bc
1 file changed
zeroconf/_handlers.py
@@ -331,7 +331,7 @@ def async_updates_from_response(self, msg: DNSIncoming) -> None:
331
updates: List[RecordUpdate] = []
332
address_adds: List[DNSAddress] = []
333
other_adds: List[DNSRecord] = []
334
- removes: List[DNSRecord] = []
+ removes: Set[DNSRecord] = set()
335
now = msg.now
336
unique_types: Set[Tuple[str, int, int]] = set()
337
@@ -355,7 +355,7 @@ def async_updates_from_response(self, msg: DNSIncoming) -> None:
355
# expired and exists in the cache
356
elif maybe_entry is not None:
357
updates.append(RecordUpdate(record, maybe_entry))
358
- removes.append(record)
+ removes.add(record)
359
360
if unique_types:
361
self._async_mark_unique_cached_records_older_than_1s_to_expire(unique_types, msg.answers, now)
0 commit comments