timeout for each contact in get_contacts

This commit is contained in:
Florent de Lamotte
2025-10-22 10:21:07 +02:00
parent 8f0be09f9a
commit d619423078
5 changed files with 77 additions and 41 deletions

View File

@@ -99,6 +99,7 @@ class MessageReader:
if packet_type_value == PacketType.PUSH_CODE_NEW_ADVERT.value:
await self.dispatcher.dispatch(Event(EventType.NEW_CONTACT, c))
else:
await self.dispatcher.dispatch(Event(EventType.NEXT_CONTACT, c))
self.contacts[c["public_key"]] = c
elif packet_type_value == PacketType.CONTACT_END.value: