(customPath string)
| 247 | c.advanceFabricCursor(payload) |
| 248 | return 0, nil |
| 249 | } |
| 250 | result, err := c.Engine.AppendEvents(ctx, events, |
| 251 | memory.IngestOptions{SemanticPolicy: memory.SemanticDurableOnly}) |
| 252 | if result.Durable { |
| 253 | c.advanceFabricCursor(payload) |
| 254 | } |
| 255 | if err != nil { |
| 256 | return len(events), err |
| 257 | } |
| 258 | if !result.Durable { |
| 259 | return 0, errors.New("memory fabric did not confirm durable event ingestion") |
| 260 | } |
| 261 | return len(events), nil |
| 262 | } |
| 263 | |
| 264 | func (c *ExtractionController) runFabricExtraction(ctx context.Context, payload *extractionContext) (string, error) { |
| 265 | if c.Engine == nil { |
| 266 | return "", errors.New("memory fabric engine is unavailable") |
| 267 | } |
no test coverage detected