(nodeIDs []string)
| 100 | } |
| 101 | |
| 102 | func (m *AckingResourceMutatorWrapper) currentVersionAcked(nodeIDs []string) bool { |
| 103 | for _, node := range nodeIDs { |
| 104 | if acked, exists := m.ackedVersions[node]; !exists || acked < m.version { |
| 105 | m.logger.Debug("Node has not acked the current cached version yet", |
| 106 | logfields.XDSCachedVersion, m.version, |
| 107 | logfields.XDSAckedVersion, acked, |
| 108 | logfields.XDSClientNode, node, |
| 109 | ) |
| 110 | return false |
| 111 | } |
| 112 | } |
| 113 | return true |
| 114 | } |
| 115 | |
| 116 | // useCurrent adds a completion to the WaitGroup if the current |
| 117 | // version of the cached resource has not been acked yet, allowing the |
no test coverage detected