fix typo in pkg tunneler

This commit is contained in:
u2takey 2017-08-15 10:46:07 +08:00
parent 6109b4015c
commit 1364264779

View File

@ -56,11 +56,11 @@ func TunnelSyncHealthChecker(tunneler Tunneler) func(req *http.Request) error {
}
lag := tunneler.SecondsSinceSync()
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()
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
}