Skip to content

Commit

Permalink
Fix community bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mg98 committed Oct 24, 2024
1 parent 87745db commit 5ffb981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipv8/community.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def _bootstrap(self, bootstrapper: Bootstrapper) -> None:
task = ensure_future(bootstrapper.initialize(self))

addresses = await bootstrapper.get_addresses(self, 60.0)
for address in (addresses if self.max_peers > 0 else islice(addresses, self.max_peers)):
for address in (islice(addresses, self.max_peers) if self.max_peers > 0 else addresses):
self.walk_to(address)

await task
Expand Down

0 comments on commit 5ffb981

Please sign in to comment.