Use del method
This commit is contained in:
parent
818d500f98
commit
670ed74a13
2
selector/cache/cache.go
vendored
2
selector/cache/cache.go
vendored
@ -359,7 +359,7 @@ func (c *cacheSelector) Mark(service string, node *registry.Node, err error) {
|
||||
|
||||
func (c *cacheSelector) Reset(service string) {
|
||||
c.Lock()
|
||||
delete(c.cache, service)
|
||||
c.del(service)
|
||||
c.Unlock()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user