From 5ea7d1152bb923a13671200b21b4168299d51cd7 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Fri, 24 May 2024 16:58:04 +0900 Subject: [PATCH] fix: more clear control flow --- mixnet/v2/sim/p2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixnet/v2/sim/p2p.py b/mixnet/v2/sim/p2p.py index d57e28d..c82c055 100644 --- a/mixnet/v2/sim/p2p.py +++ b/mixnet/v2/sim/p2p.py @@ -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))