We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 691650e commit 418b072Copy full SHA for 418b072
images/vm-route-forge/internal/cache/cache.go
@@ -87,6 +87,8 @@ func (c *defaultCache) DeleteByIP(ip net.IP) {
87
}
88
89
func (c *defaultCache) Iterate(fn func(k types.NamespacedName, v Addresses) (next bool)) {
90
+ c.mu.RLock()
91
+ defer c.mu.RUnlock()
92
for k, v := range c.vmAddr {
93
if next := fn(k, v); !next {
94
break
0 commit comments