run handles requests until the context is done or there is a fatal error.
(ctx context.Context)
| 50 | |
| 51 | // run handles requests until the context is done or there is a fatal error. |
| 52 | func (p *processor) run(ctx context.Context) error { |
| 53 | for { |
| 54 | if err := p.handleRequest(ctx); err != nil { |
| 55 | return err |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // handleRequest handles one image-processing request. |
| 61 | // A non-nil error from handleRequest will end request processing. |
nothing calls this directly
no test coverage detected