mirror of https://github.com/grpc/grpc-go.git
resolver_wrapper: add early return in addChannelzTraceEvent (#7437)
This commit is contained in:
parent
5520cff38a
commit
1b1230bb69
|
|
@ -177,6 +177,9 @@ func (ccr *ccResolverWrapper) ParseServiceConfig(scJSON string) *serviceconfig.P
|
|||
// addChannelzTraceEvent adds a channelz trace event containing the new
|
||||
// state received from resolver implementations.
|
||||
func (ccr *ccResolverWrapper) addChannelzTraceEvent(s resolver.State) {
|
||||
if !logger.V(0) && !channelz.IsOn() {
|
||||
return
|
||||
}
|
||||
var updates []string
|
||||
var oldSC, newSC *ServiceConfig
|
||||
var oldOK, newOK bool
|
||||
|
|
|
|||
Loading…
Reference in New Issue