File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-graphql/src/main/java/org/springframework/graphql/execution Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -176,15 +176,16 @@ private String initName() {
176
176
177
177
private Supplier <DataLoaderOptions > initOptionsSupplier () {
178
178
179
- Supplier <DataLoaderOptions > optionsSupplier = (this .options != null ?
180
- () -> this .options : DefaultBatchLoaderRegistry .this .defaultOptionsSupplier );
179
+ Supplier <DataLoaderOptions > optionsSupplier = () ->
180
+ new DataLoaderOptions (this .options != null ?
181
+ this .options : DefaultBatchLoaderRegistry .this .defaultOptionsSupplier .get ());
181
182
182
183
if (this .optionsConsumer == null ) {
183
184
return optionsSupplier ;
184
185
}
185
186
186
187
return () -> {
187
- DataLoaderOptions options = new DataLoaderOptions ( optionsSupplier .get () );
188
+ DataLoaderOptions options = optionsSupplier .get ();
188
189
this .optionsConsumer .accept (options );
189
190
return options ;
190
191
};
You can’t perform that action at this time.
0 commit comments