prometheus/discovery/file
machine424 afc05129f1
fix(discovery): allow requireUpdate util to timeout in discovery/file/file_test.go.
The loop ran indefinitely if the condition isn't met.

Before, each iteration created a new timer channel which was always outpaced by
the other timer channel with smaller duration.

minor detail: There was a memory leak: resources of the ~10 previous timers were
constantly kept. With the fix, we may keep the resources of one timer around for defaultWait
but this isn't worth the changes to make it right.

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2024-01-07 21:18:08 +01:00
..
fixtures fixes yamllint errors 2021-06-12 12:47:47 +02:00
file.go Allow non-default registry to be used for metrics of SD components 2023-12-11 11:14:26 +00:00
file_test.go fix(discovery): allow requireUpdate util to timeout in discovery/file/file_test.go. 2024-01-07 21:18:08 +01:00