fix: more clear control flow

This commit is contained in:
Youngjoon Lee 2024-05-24 16:58:04 +09:00
parent 06f8f0f7ca
commit 5ea7d1152b
No known key found for this signature in database
GPG Key ID: 09B750B5BD6F08A2
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class GossipP2P(P2P):
neighbor = front[0]
front = front[1:]
else:
return
continue
others = front + back
n = min(self.config.p2p.connection_density - 1, len(others))