(_ context.Context, step StepRow)
| 59 | } |
| 60 | |
| 61 | func (m *memoryStore) AppendStep(_ context.Context, step StepRow) error { |
| 62 | m.mu.Lock() |
| 63 | defer m.mu.Unlock() |
| 64 | if _, ok := m.requests[step.RequestID]; !ok { |
| 65 | return ErrNotFound |
| 66 | } |
| 67 | m.steps[step.RequestID] = append(m.steps[step.RequestID], step) |
| 68 | return nil |
| 69 | } |
| 70 | |
| 71 | func (m *memoryStore) GetRequest(_ context.Context, requestID string) (RequestRow, error) { |
| 72 | m.mu.RLock() |
nothing calls this directly
no outgoing calls
no test coverage detected