()
| 616 | // image that predates the action reject it with Unimplemented, which also |
| 617 | // surfaces as an error. |
| 618 | func (e *FlightExecutor) SetS3CacheEnabled(ctx context.Context, enabled bool) (err error) { |
| 619 | if e.dead.Load() { |
| 620 | return ErrWorkerDead |
| 621 | } |
| 622 | if e.client == nil || e.client.Client == nil { |
| 623 | return ErrWorkerDead |
| 624 | } |
| 625 | defer recoverClientPanic(&err) |
| 626 | |
| 627 | payload, err := json.Marshal(wire.WorkerSetS3CachePayload{ |
nothing calls this directly
no outgoing calls
no test coverage detected