Skip to content

Commit

Permalink
resolver_wrapper: add early return in addChannelzTraceEvent (#7437)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsm authored Jul 30, 2024
1 parent 5520cff commit 1b1230b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resolver_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b1230b

Please sign in to comment.