chore: minor fixes
This commit is contained in:
parent
0448f66ab2
commit
2af9e734dd
6 changed files with 28 additions and 15 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue