private void maybeUpdatePicker ( ConnectivityState state , RoundRobinPicker picker ) { // Discard the new picker if we are sure it won't make any difference, in order to save // re-processing pending streams, and avoid unnecessary resetting of the pointer in // RoundRobinPicker. if ( picker . dropList . equals ( currentPicker . dropList ) && picker . pickList . equals ( currentPicker . pickList ) ) { return ; } currentPicker = picker ; logger . log ( ChannelLogLevel . INFO , "{0}: picks={1}, drops={2}" , state , picker . pickList , picker . dropList ) ; helper . updateBalancingState ( state , picker ) ; }
Update the given picker to the helper if it s different from the current one .