Optimize code
This commit is contained in:
committed by
Ta-Ching Chen
parent
01bcfad44a
commit
b578819202
+1
-1
@@ -169,7 +169,7 @@ func waitForCRDs(crdClient *rest.RESTClient) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if time.Now().Sub(start) > 30*time.Second {
|
||||
if time.Since(start) > 30*time.Second {
|
||||
return errors.New("timeout waiting for CRDs")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user