mirror of https://github.com/grpc/grpc-go.git
redundant code
This commit is contained in:
parent
d7673c43e9
commit
c9539a71a9
|
|
@ -117,9 +117,6 @@ func (p *Pool) NewClientForTesting(opts OptionsForTesting) (XDSClient, func(), e
|
|||
if opts.Name == "" {
|
||||
return nil, nil, fmt.Errorf("xds: opts.Name field must be non-empty")
|
||||
}
|
||||
if opts.WatchExpiryTimeout == 0 {
|
||||
opts.WatchExpiryTimeout = defaultWatchExpiryTimeout
|
||||
}
|
||||
if opts.StreamBackoffAfterFailure == nil {
|
||||
opts.StreamBackoffAfterFailure = defaultExponentialBackoff
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue