Skip to content

Commit 0666355

Browse files
committed
comments
1 parent 6763482 commit 0666355

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/graphql/execution/instrumentation/dataloader/PerLevelDataLoaderDispatchStrategy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ private static class ChainedDLStack {
4242

4343
private final Map<Integer, AtomicReference<@Nullable StateForLevel>> stateMapPerLevel = new ConcurrentHashMap<>();
4444

45-
// Immutable state class for atomic updates
45+
// a state for level points to a previous one
46+
// all the invocations that are linked together are the relevant invocations for the next dispatch
4647
private static class StateForLevel {
4748
final @Nullable DataLoaderInvocation dataLoaderInvocation;
4849
final boolean dispatchingStarted;

0 commit comments

Comments
 (0)