Skip to content

Commit c9539a7

Browse files
redundant code
1 parent d7673c4 commit c9539a7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

internal/xds/xdsclient/pool.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ func (p *Pool) NewClientForTesting(opts OptionsForTesting) (XDSClient, func(), e
117117
if opts.Name == "" {
118118
return nil, nil, fmt.Errorf("xds: opts.Name field must be non-empty")
119119
}
120-
if opts.WatchExpiryTimeout == 0 {
121-
opts.WatchExpiryTimeout = defaultWatchExpiryTimeout
122-
}
123120
if opts.StreamBackoffAfterFailure == nil {
124121
opts.StreamBackoffAfterFailure = defaultExponentialBackoff
125122
}

0 commit comments

Comments
 (0)