MCPcopy
hub / github.com/github/gh-ost / SetDefaultNumRetries

Method SetDefaultNumRetries

go/base/context.go:491–497  ·  view source on GitHub ↗
(retries int64)

Source from the content-addressed store, hash-verified

489}
490
491func (mctx *MigrationContext) SetDefaultNumRetries(retries int64) {
492 mctx.throttleMutex.Lock()
493 defer mctx.throttleMutex.Unlock()
494 if retries > 0 {
495 mctx.defaultNumRetries = retries
496 }
497}
498
499func (mctx *MigrationContext) MaxRetries() int64 {
500 mctx.throttleMutex.Lock()

Calls

no outgoing calls