Remove unclear comment for makeSpoofClient() (#2347)

This commit is contained in:
Kenjiro Nakayama 2021-11-11 20:49:38 +09:00 committed by GitHub
parent cd0d505c46
commit 0b0c3390a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ func WaitForEndpointStateWithTimeout(
timeout time.Duration,
opts ...interface{}) (*spoof.Response, error) {
client, rOpts, err := makeSpoofClient(ctx, kubeClient, logf, url, resolvable, timeout /* true, */, opts...)
client, rOpts, err := makeSpoofClient(ctx, kubeClient, logf, url, resolvable, timeout, opts...)
if err != nil {
return nil, err
}
@ -152,7 +152,7 @@ func CheckEndpointState(
resolvable bool,
opts ...interface{},
) (*spoof.Response, error) {
client, rOpts, err := makeSpoofClient(ctx, kubeClient, logf, url, resolvable, Flags.SpoofRequestTimeout /* false, */, opts...)
client, rOpts, err := makeSpoofClient(ctx, kubeClient, logf, url, resolvable, Flags.SpoofRequestTimeout, opts...)
if err != nil {
return nil, err
}