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

Method advanceBackoff

utils/ssh.go:296–302  ·  view source on GitHub ↗
(status SSHRetryStatus)

Source from the content-addressed store, hash-verified

294}
295
296func (s *sshRetryState) advanceBackoff(status SSHRetryStatus) {
297 if status == SSHStatusAuth {
298 s.authBackoff = minDuration(s.authBackoff*2, sshMaxAuthBackoff)
299 return
300 }
301 s.backoff = minDuration(s.backoff*2, sshMaxBackoff)
302}
303
304func emitSSHProgress(callback SSHProgressCallback, status SSHRetryStatus, attempt int, err error, message string) {
305 if callback == nil {

Callers 1

Calls 1

minDurationFunction · 0.85

Tested by

no test coverage detected