chore: fix marking monitor waited once

This commit is contained in:
andig 2025-10-14 13:37:32 +02:00
parent 454395eb0e
commit 173f4e5bc2

View file

@ -86,7 +86,7 @@ func (m *Monitor[T]) GetFunc(get func(T)) error {
// mark as waited once
m.mu.Lock()
// TODO fix and test
m.updated.Add(time.Nanosecond)
m.updated = m.updated.Add(time.Nanosecond)
m.mu.Unlock()
select {