Skip to content

Commit 6a0be82

Browse files
authored
Merge pull request #2310 from Netflix/coroutine-fix
Exclude dgsCoroutineDispatcher from being injected unless explicitly qualified for
2 parents 15badbc + 23bfc8e commit 6a0be82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQLAutoConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ open class DgsSpringGraphQLAutoConfiguration(
516516
* Defaults to [Dispatchers.Unconfined] which runs coroutines immediately on the calling thread.
517517
* Override this bean to customize the dispatcher for your specific use case.
518518
*/
519-
@Bean
519+
@Bean(defaultCandidate = false)
520520
@Qualifier("dgsCoroutineDispatcher")
521521
@ConditionalOnMissingBean(name = ["dgsCoroutineDispatcher"])
522522
open fun dgsCoroutineDispatcher(): CoroutineDispatcher = Dispatchers.Unconfined

0 commit comments

Comments
 (0)