1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Mutex Unlock when we fail to store route in cache.

This commit is contained in:
Milos Gajdos 2019-07-24 19:13:05 +01:00
parent 23f0231a09
commit 809de7a052
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -166,6 +166,7 @@ func (p *Proxy) watchRoutes() {
p.Lock()
if err := p.manageRouteCache(event.Route, fmt.Sprintf("%s", event.Type)); err != nil {
// TODO: should we bail here?
p.Unlock()
continue
}
p.Unlock()