Skip to content

Commit

Permalink
core: beacon: set ttl to 25 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Mar 30, 2022
1 parent e209335 commit db825be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/beacon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def add_services(self, service: AsyncServiceInfo) -> None:

async def register_services(self) -> None:
self.aiozc = AsyncZeroconf(ip_version=self.ip_version, interfaces=[self.interfaces]) # type: ignore
tasks = [self.aiozc.async_register_service(info, cooperating_responders=True) for info in self.services]
tasks = [self.aiozc.async_register_service(info, cooperating_responders=True, ttl=25) for info in self.services]
background_tasks = await asyncio.gather(*tasks)
await asyncio.gather(*background_tasks)
logger.info("Finished registration, press Ctrl-C to exit...")
Expand Down

0 comments on commit db825be

Please sign in to comment.