MCPcopy Create free account
hub / github.com/actiontech/dtle / NewTimestampContext

Function NewTimestampContext

driver/mysql/extractor.go:930–938  ·  view source on GitHub ↗
(stopCh chan struct{}, logger g.LoggerType, emptyQueueFunc func() bool)

Source from the content-addressed store, hash-verified

928}
929
930func NewTimestampContext(stopCh chan struct{}, logger g.LoggerType, emptyQueueFunc func() bool) *TimestampContext {
931 return &TimestampContext{
932 stopCh: stopCh,
933 logger: logger,
934 emptyQueueFunc: emptyQueueFunc,
935
936 TimestampCh: make(chan uint32, 16),
937 }
938}
939func (tsc *TimestampContext) GetDelay() (d int64) {
940 tsc.logger.Debug("TimestampContext.GetDelay", "delay", tsc.delay)
941 return tsc.delay

Callers 2

NewExtractorFunction · 0.70
NewApplierIncrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected