Skip to content

Commit 6560fad

Browse files
authored
fix: microsecond precision loss in the query handler (#1339)
1 parent f78a196 commit 6560fad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/zeroconf/_handlers/query_handler.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cdef class _QueryResponse:
3939

4040
cdef bint _is_probe
4141
cdef cython.list _questions
42-
cdef float _now
42+
cdef double _now
4343
cdef DNSCache _cache
4444
cdef cython.dict _additionals
4545
cdef cython.set _ucast
@@ -91,7 +91,7 @@ cdef class QueryHandler:
9191
known_answers_set=cython.set,
9292
is_unicast=bint,
9393
is_probe=object,
94-
now=float
94+
now=double
9595
)
9696
cpdef async_response(self, cython.list msgs, cython.bint unicast_source)
9797

0 commit comments

Comments
 (0)