This change seems to fix the issue described in the ticket and also a potential panic caused by channel being closed while new values could still come in which caused a panic.
Attached also a script which displays the number of current go routines and demonstrates that after the fix they don't change over time, no matter how many times we subscribe to notifications.
Hello
This change seems to fix the issue described in the ticket and also a potential panic caused by channel being closed while new values could still come in which caused a panic. Attached also a script which displays the number of current go routines and demonstrates that after the fix they don't change over time, no matter how many times we subscribe to notifications.