mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
fix typo in pkg tunneler
This commit is contained in:
parent
6109b4015c
commit
1364264779
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user