@@ -23,7 +23,7 @@ type Processor struct {
2323 collectDataSourceInfo bool
2424 fetchTreeProcessors * FetchTreeProcessors
2525 responseTreeProcessors * ResponseTreeProcessors
26- deferProcessor * deferProcessor
26+ extractDeferFetches * extractDeferFetches
2727}
2828
2929type FetchTreeProcessors struct {
@@ -68,7 +68,7 @@ type processorOptions struct {
6868 disableCreateParallelNodes bool
6969 disableAddMissingNestedDependencies bool
7070 collectDataSourceInfo bool
71- disableDefer bool
71+ disableExtractDeferFetches bool
7272}
7373
7474type ProcessorOption func (* processorOptions )
@@ -122,9 +122,9 @@ func DisableAddMissingNestedDependencies() ProcessorOption {
122122 }
123123}
124124
125- func DisableDefer () ProcessorOption {
125+ func DisableExtractDeferFetches () ProcessorOption {
126126 return func (o * processorOptions ) {
127- o .disableDefer = true
127+ o .disableExtractDeferFetches = true
128128 }
129129}
130130
@@ -166,8 +166,8 @@ func NewProcessor(options ...ProcessorOption) *Processor {
166166 disable : opts .disableMergeFields ,
167167 },
168168 },
169- deferProcessor : & deferProcessor {
170- disable : opts .disableDefer ,
169+ extractDeferFetches : & extractDeferFetches {
170+ disable : opts .disableExtractDeferFetches ,
171171 },
172172 }
173173}
@@ -191,7 +191,7 @@ func (p *Processor) Process(pre plan.Plan) {
191191 p .fetchTreeProcessors .processFlatFetchTree (t .Response .Fetches )
192192
193193 // extract deferred fetches into their own fetch trees
194- p .deferProcessor .Process (t )
194+ p .extractDeferFetches .Process (t )
195195
196196 // process the initial response fetch tree
197197 p .fetchTreeProcessors .organizeFetchTree (t .Response .Fetches )
0 commit comments