mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 08:32:15 +00:00
f9896e0162
... rather than in the Subscribe method. Currently the cleanup for a given Alert subscription is done in a blocking goroutine, started in the Subscribe method. This simplifies it by moving the cleanup to the GC. Additionally it simplifies the subscribe method by setting up the buffered channel big enough to fill it up with all pending alerts preventing the necessity to start a goroutine in Subscribe at all. Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com> |
||
---|---|---|
.. | ||
mem | ||
provider.go |