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

Method SetHeartbeatIntervalMilliseconds

go/base/context.go:669–677  ·  view source on GitHub ↗
(heartbeatIntervalMilliseconds int64)

Source from the content-addressed store, hash-verified

667}
668
669func (mctx *MigrationContext) SetHeartbeatIntervalMilliseconds(heartbeatIntervalMilliseconds int64) {
670 if heartbeatIntervalMilliseconds < 100 {
671 heartbeatIntervalMilliseconds = 100
672 }
673 if heartbeatIntervalMilliseconds > 1000 {
674 heartbeatIntervalMilliseconds = 1000
675 }
676 mctx.HeartbeatIntervalMilliseconds = heartbeatIntervalMilliseconds
677}
678
679func (mctx *MigrationContext) SetMaxLagMillisecondsThrottleThreshold(maxLagMillisecondsThrottleThreshold int64) {
680 if maxLagMillisecondsThrottleThreshold < 100 {

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected