(maxWait int)
| 234 | } |
| 235 | |
| 236 | func newSSHRetryState(maxWait int) *sshRetryState { |
| 237 | return &sshRetryState{ |
| 238 | deadline: time.Now().Add(time.Duration(maxWait) * time.Second), |
| 239 | backoff: sshInitialBackoff, |
| 240 | authBackoff: sshInitialAuthBackoff, |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | func (s *sshRetryState) expired() bool { |
| 245 | return time.Now().After(s.deadline) |
no outgoing calls
no test coverage detected