redundant code

This commit is contained in:
eshitachandwani 2025-08-20 13:55:25 +05:30
parent d7673c43e9
commit c9539a71a9
1 changed files with 0 additions and 3 deletions

View File

@ -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
}