1
0
Fork 0

chore: minor fixes

This commit is contained in:
Arthur K. 2026-01-23 11:13:44 +03:00
parent 0448f66ab2
commit 2af9e734dd
Signed by: wzray
GPG key ID: B97F30FDC4636357
6 changed files with 28 additions and 15 deletions

View file

@ -39,6 +39,9 @@ func newObserver(
}
func (o *observer) pollNodes(ctx context.Context, onLeave func(types.Node) error) {
o.lock.Lock()
defer o.lock.Unlock()
nodes := o.state.Registry.Nodes()
toCheck := make([]types.Node, 0, len(nodes))
now := time.Now().UnixMilli()