close closes the nodeUpdate and stops it calling the node callback
()
| 86 | |
| 87 | // close closes the nodeUpdate and stops it calling the node callback |
| 88 | func (u *nodeUpdater) close() { |
| 89 | u.L.Lock() |
| 90 | defer u.L.Unlock() |
| 91 | u.closing = true |
| 92 | u.Broadcast() |
| 93 | for u.phase != closed { |
| 94 | u.Wait() |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func newNodeUpdater( |
| 99 | logger slog.Logger, callback func(n *Node), |