forked from goodboy/tractor
				
			Avoid mutate during interate error
							parent
							
								
									4e102edc0e
								
							
						
					
					
						commit
						2828b97f5a
					
				|  | @ -30,7 +30,7 @@ async def publisher( | ||||||
| 
 | 
 | ||||||
|         sub = 'even' if is_even(val) else 'odd' |         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) |             await sub_stream.send(val) | ||||||
| 
 | 
 | ||||||
|         # throttle send rate to ~1kHz |         # throttle send rate to ~1kHz | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue