RequestScan pokes the scan trigger so the run loop performs a scan.
()
| 139 | |
| 140 | // RequestScan pokes the scan trigger so the run loop performs a scan. |
| 141 | func (h *Handler) RequestScan() { |
| 142 | select { |
| 143 | case h.scanTrigger <- struct{}{}: |
| 144 | default: |
| 145 | // Already pending. |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | // Scan performs a scan of all subscribed repos and computes deltas |
| 150 | // against the previously emitted snapshots. |
no outgoing calls