Commit d699a6f3 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50657 from u2takey/master

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. fix typo **What this PR does / why we need it**: Fix typos in package tunneler. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
parents d369e196 13642647
...@@ -56,11 +56,11 @@ func TunnelSyncHealthChecker(tunneler Tunneler) func(req *http.Request) error { ...@@ -56,11 +56,11 @@ func TunnelSyncHealthChecker(tunneler Tunneler) func(req *http.Request) error {
} }
lag := tunneler.SecondsSinceSync() lag := tunneler.SecondsSinceSync()
if lag > 600 { if lag > 600 {
return fmt.Errorf("Tunnel sync is taking to long: %d", lag) return fmt.Errorf("Tunnel sync is taking too long: %d", lag)
} }
sshKeyLag := tunneler.SecondsSinceSSHKeySync() sshKeyLag := tunneler.SecondsSinceSSHKeySync()
if sshKeyLag > 600 { if sshKeyLag > 600 {
return fmt.Errorf("SSHKey sync is taking to long: %d", sshKeyLag) return fmt.Errorf("SSHKey sync is taking too long: %d", sshKeyLag)
} }
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment