MCPcopy Create free account
hub / github.com/coder/coder / Worker

Struct Worker

coderd/x/gitsync/worker.go:79–89  ·  view source on GitHub ↗

Worker is a background loop that periodically refreshes stale chat diff statuses by delegating to a Refresher.

Source from the content-addressed store, hash-verified

77// Worker is a background loop that periodically refreshes stale
78// chat diff statuses by delegating to a Refresher.
79type Worker struct {
80 store Store
81 refresher *Refresher
82 publishDiffStatusChangeFn PublishDiffStatusChangeFunc
83 clock quartz.Clock
84 logger slog.Logger
85 batchSize int32
86 interval time.Duration
87 tickTimeout time.Duration
88 done chan struct{}
89}
90
91// WorkerOption configures a Worker.
92type WorkerOption func(*Worker)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected