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

Method SetETADuration

go/base/context.go:609–611  ·  view source on GitHub ↗
(etaDuration time.Duration)

Source from the content-addressed store, hash-verified

607}
608
609func (mctx *MigrationContext) SetETADuration(etaDuration time.Duration) {
610 atomic.StoreInt64(&mctx.etaNanoseonds, etaDuration.Nanoseconds())
611}
612
613func (mctx *MigrationContext) GetETASeconds() int64 {
614 nano := atomic.LoadInt64(&mctx.etaNanoseonds)

Callers 2

printStatusMethod · 0.80

Calls

no outgoing calls

Tested by 1