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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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
}