Skip to content

Commit

Permalink
Merge pull request #3479 from graphql-java/remove-parameters-not-needed
Browse files Browse the repository at this point in the history
Using object instead of CF in DispatcherStrategy interface
  • Loading branch information
bbakerman committed Feb 29, 2024
2 parents 34e92d7 + 31bf7ab commit 1d75302
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -41,7 +41,7 @@ default void executeObjectOnFieldValuesException(Throwable t, ExecutionStrategyP
default void fieldFetched(ExecutionContext executionContext,
ExecutionStrategyParameters executionStrategyParameters,
DataFetcher<?> dataFetcher,
CompletableFuture<Object> fetchedValue) {
Object fetchedValue) {

}

Expand Down
Expand Up @@ -14,7 +14,6 @@
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.CompletableFuture;

@Internal
public class PerLevelDataLoaderDispatchStrategy implements DataLoaderDispatchStrategy {
Expand Down Expand Up @@ -186,7 +185,10 @@ private int getCountForList(List<FieldValueInfo> fieldValueInfos) {


@Override
public void fieldFetched(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, DataFetcher<?> dataFetcher, CompletableFuture<Object> fetchedValue) {
public void fieldFetched(ExecutionContext executionContext,
ExecutionStrategyParameters executionStrategyParameters,
DataFetcher<?> dataFetcher,
Object fetchedValue) {
int level = executionStrategyParameters.getPath().getLevel();
boolean dispatchNeeded = callStack.lock.callLocked(() -> {
callStack.increaseFetchCount(level);
Expand Down

0 comments on commit 1d75302

Please sign in to comment.