Worker is a background loop that periodically refreshes stale chat diff statuses by delegating to a Refresher.
| 77 | // Worker is a background loop that periodically refreshes stale |
| 78 | // chat diff statuses by delegating to a Refresher. |
| 79 | type 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. |
| 92 | type WorkerOption func(*Worker) |
nothing calls this directly
no outgoing calls
no test coverage detected