DoneConfChange marks a configuration change as done and sends the given error to the config channel.
(id uint64, err error)
| 188 | // DoneConfChange marks a configuration change as done and sends the given error to the |
| 189 | // config channel. |
| 190 | func (n *Node) DoneConfChange(id uint64, err error) { |
| 191 | n.Lock() |
| 192 | defer n.Unlock() |
| 193 | ch, has := n.confChanges[id] |
| 194 | if !has { |
| 195 | return |
| 196 | } |
| 197 | delete(n.confChanges, id) |
| 198 | ch <- err |
| 199 | } |
| 200 | |
| 201 | //nolint:gosec // random node id generator does not require cryptographic precision |
| 202 | func (n *Node) storeConfChange(che chan error) uint64 { |
no test coverage detected