Set stores checkpoint data for a batch index. Implements compose.CheckPointStore interface.
(_ context.Context, checkPointID string, checkPoint []byte)
| 77 | // Set stores checkpoint data for a batch index. |
| 78 | // Implements compose.CheckPointStore interface. |
| 79 | func (m *batchBridgeStore) Set(_ context.Context, checkPointID string, checkPoint []byte) error { |
| 80 | index, err := parseBatchIndex(checkPointID) |
| 81 | if err != nil { |
| 82 | return err |
| 83 | } |
| 84 | |
| 85 | m.mu.Lock() |
| 86 | defer m.mu.Unlock() |
| 87 | |
| 88 | m.data[index] = checkPoint |
| 89 | return nil |
| 90 | } |
nothing calls this directly
no test coverage detected