MCPcopy Create free account
hub / github.com/celer-pkg/celer / retrySleep

Function retrySleep

pkgs/git/remote.go:13–15  ·  view source on GitHub ↗
(attempt int)

Source from the content-addressed store, hash-verified

11const retryMaxAttempts = 3
12
13func retrySleep(attempt int) {
14 time.Sleep(time.Duration(attempt) * time.Second)
15}
16
17// CheckIfRemoteBranch check if repoRef is a branch.
18func CheckIfRemoteBranch(target, repoUrl, repoRef string) (bool, error) {

Callers 1

CloneRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected