(c *gin.Context, requestID string, step ProcessStep)
| 170 | } |
| 171 | |
| 172 | func enqueuePendingProcessStep(c *gin.Context, requestID string, step ProcessStep) { |
| 173 | if c == nil { |
| 174 | return |
| 175 | } |
| 176 | steps := getPendingProcessSteps(c) |
| 177 | steps = append(steps, pendingProcessStep{ |
| 178 | RequestID: requestID, |
| 179 | Step: step, |
| 180 | }) |
| 181 | c.Set(ctxKeyPendingProcessSteps, steps) |
| 182 | } |
| 183 | |
| 184 | func flushPendingProcessSteps(c *gin.Context) error { |
| 185 | if c == nil { |
no test coverage detected