internal: Change Lock to RLock since no mutation is performed (#2142)

This commit is contained in:
dfawley
2018-06-12 12:50:43 -07:00
committed by GitHub
parent aa30531d2b
commit fb845db15c

View File

@ -1060,9 +1060,9 @@ func (cc *ClientConn) handleServiceConfig(js string) error {
}
func (cc *ClientConn) resolveNow(o resolver.ResolveNowOption) {
cc.mu.Lock()
cc.mu.RLock()
r := cc.resolverWrapper
cc.mu.Unlock()
cc.mu.RUnlock()
if r == nil {
return
}