(_ context.Context, row RequestRow)
| 22 | } |
| 23 | |
| 24 | func (m *memoryStore) CreateRequest(_ context.Context, row RequestRow) error { |
| 25 | m.mu.Lock() |
| 26 | defer m.mu.Unlock() |
| 27 | if _, ok := m.requests[row.RequestID]; ok { |
| 28 | return errors.New("request already exists") |
| 29 | } |
| 30 | m.requests[row.RequestID] = row |
| 31 | m.steps[row.RequestID] = nil |
| 32 | return nil |
| 33 | } |
| 34 | |
| 35 | func (m *memoryStore) UpdateRequest(_ context.Context, requestID string, patch RequestPatch) error { |
| 36 | m.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected