Skip to content

Commit

Permalink
Avoid mutate during interate error
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jul 2, 2021
1 parent e09dacc commit dca0378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_advanced_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def is_even(i):

sub = 'even' if is_even(val) else 'odd'

for sub_stream in _registry[sub]:
for sub_stream in _registry[sub].copy():
await sub_stream.send(val)

# throttle send rate to ~1kHz
Expand Down

0 comments on commit dca0378

Please sign in to comment.