Complete the core operation execution cutover
This commit is contained in:
@@ -227,8 +227,8 @@ type configExtractor struct{ key string }
|
||||
|
||||
func (extractor configExtractor) Key() string { return extractor.key }
|
||||
func (configExtractor) ReferenceSlots() []contracts.ReferenceSlot { return nil }
|
||||
func (configExtractor) Extract(context.Context, contracts.TypedExtractionRequest[dnd.SpellList]) (contracts.TypedExtractionResult[dnd.SpellList], error) {
|
||||
return contracts.TypedExtractionResult[dnd.SpellList]{}, nil
|
||||
func (configExtractor) PrepareExtraction(context.Context, contracts.ExtractionInput) (contracts.PreparedOperation[dnd.SpellList], error) {
|
||||
return preparedValue(dnd.SpellList{}), nil
|
||||
}
|
||||
|
||||
func appendSpellLists(values []dnd.SpellList) (dnd.SpellList, error) {
|
||||
@@ -259,10 +259,8 @@ func (dndSpellsChunker) ReferenceSlots() []contracts.ReferenceSlot {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (dndSpellsChunker) Plan(ctx context.Context, req contracts.ChunkRequest) (contracts.ChunkPlanResult, error) {
|
||||
return contracts.ChunkPlanResult{
|
||||
Plan: source.ChunkPlan{SourceDigest: req.Source.Digest, Ranges: []source.ChunkRange{{StartUnitID: req.Source.Units[0].ID, EndUnitID: req.Source.Units[len(req.Source.Units)-1].ID}}},
|
||||
}, nil
|
||||
func (dndSpellsChunker) PrepareChunk(ctx context.Context, req contracts.ChunkInput) (contracts.PreparedOperation[source.ChunkPlan], error) {
|
||||
return preparedValue(source.ChunkPlan{SourceDigest: req.Source.Digest, Ranges: []source.ChunkRange{{StartUnitID: req.Source.Units[0].ID, EndUnitID: req.Source.Units[len(req.Source.Units)-1].ID}}}), nil
|
||||
}
|
||||
|
||||
func withoutCapability(capabilities []string, capability string) []string {
|
||||
|
||||
Reference in New Issue
Block a user