MCPcopy
hub / github.com/cilium/cilium / currentVersionAcked

Method currentVersionAcked

pkg/envoy/xds/ack_test.go:102–114  ·  view source on GitHub ↗
(nodeIDs []string)

Source from the content-addressed store, hash-verified

100}
101
102func (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

Callers 1

TestUpsertMultipleNodesFunction · 0.95

Calls 1

DebugMethod · 0.65

Tested by

no test coverage detected