Skip to content

Commit ff14d96

Browse files
committed
fixed minor bug in futures
1 parent 78c3941 commit ff14d96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_maker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,9 @@ def do_voting(self) -> Step: # algorithm 2
262262
while True:
263263
# submit a batch of votes
264264
for vote in futures.as_completed(
265-
Executor.submit(agent.get_vote) for agent in self.agents
265+
[Executor.submit(agent.get_vote) for agent in self.agents]
266266
):
267+
vote = vote.result()
267268
self.votes[vote] += 1
268269
max_other_votes = max(
269270
(self.votes[o_vote] for o_vote in self.votes if o_vote != vote),

0 commit comments

Comments
 (0)