Skip to content

Commit 2e7fefb

Browse files
committed
feat: speed up processing incoming records
add cython defs for set_created_ttl and reset_ttl
1 parent 933789b commit 2e7fefb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zeroconf/_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def reset_ttl(self, other) -> None: # type: ignore[no-untyped-def]
212212
another record."""
213213
self.set_created_ttl(other.created, other.ttl)
214214

215-
def set_created_ttl(self, created: float, ttl: Union[float, int]) -> None:
215+
def set_created_ttl(self, created: _float, ttl: Union[float, int]) -> None:
216216
"""Set the created and ttl of a record."""
217217
self.created = created
218218
self.ttl = ttl

0 commit comments

Comments
 (0)