- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ipToKeys (0.09 sec)
-
pilot/pkg/serviceregistry/util/workloadinstances/index.go
previous := i.keyToInstance[key] if previous != nil { i.ipToKeys.Delete(previous.Endpoint.Address, key) } i.ipToKeys.Delete(wi.Endpoint.Address, key) delete(i.keyToInstance, key) return previous } // GetByIP implements Index. func (i *index) GetByIP(ip string) []*model.WorkloadInstance { i.mu.RLock() defer i.mu.RUnlock() keys := i.ipToKeys[ip] if len(keys) == 0 { return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 16 05:45:36 UTC 2023 - 4.1K bytes - Viewed (0)