(ctx context.Context)
| 170 | } |
| 171 | |
| 172 | func resumableStateFromContext(ctx context.Context) (*rivermiddleware.ResumableState, bool) { |
| 173 | state := ctx.Value(rivermiddleware.ResumableContextKey{}) |
| 174 | if state == nil { |
| 175 | return nil, false |
| 176 | } |
| 177 | |
| 178 | typedState, ok := state.(*rivermiddleware.ResumableState) |
| 179 | if !ok || typedState == nil { |
| 180 | return nil, false |
| 181 | } |
| 182 | |
| 183 | return typedState, true |
| 184 | } |
no test coverage detected
searching dependent graphs…