Skip to content

Commit

Permalink
Async CABI: re-remove non-deterministic event.pop()
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewagner committed Oct 7, 2024
1 parent 9e8bcf0 commit 9f84b51
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions design/mvp/canonical-abi/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,7 @@ async def wait(self) -> EventTuple:

def poll(self) -> Optional[EventTuple]:
if self.events:
if DETERMINISTIC_PROFILE:
i = 0
else:
i = random.randrange(len(self.events))
event = self.events.pop(i)
event = self.events.pop(0)
if not self.events:
self.has_events.clear()
return event()
Expand Down

0 comments on commit 9f84b51

Please sign in to comment.