| 12 | ) |
| 13 | |
| 14 | type Loop struct { |
| 15 | state state |
| 16 | // Other objects |
| 17 | logger Logger |
| 18 | // Internal channels and locks |
| 19 | loopLock sync.Mutex |
| 20 | running chan models.LoopStatus |
| 21 | stop, stopped chan struct{} |
| 22 | start chan struct{} |
| 23 | backoffTime time.Duration |
| 24 | } |
| 25 | |
| 26 | func (l *Loop) logAndWait(ctx context.Context, err error) { |
| 27 | if err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected