MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / newSSHRetryState

Function newSSHRetryState

utils/ssh.go:236–242  ·  view source on GitHub ↗
(maxWait int)

Source from the content-addressed store, hash-verified

234}
235
236func 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
244func (s *sshRetryState) expired() bool {
245 return time.Now().After(s.deadline)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected