Skip to content

Commit 6b8df8a

Browse files
author
agairol
committed
return ChainedInstrumentation when registry present in context
1 parent d9935ce commit 6b8df8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/graphql/servlet/OsgiGraphQLServlet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ protected Instrumentation getInstrumentation(GraphQLContext context) {
214214
instrumentations.add(new DataLoaderDispatcherInstrumentation(registry));
215215

216216
return new ChainedInstrumentation(instrumentations);
217-
}) .map(Instrumentation.class::cast)
217+
})
218+
.map(Instrumentation.class::cast)
218219
.orElse(instrumentationProvider.getInstrumentation());
219220
}
220221

0 commit comments

Comments
 (0)