Skip to content

Commit b777ed4

Browse files
GraphQLClientModule fix
Removed @singleton annotation because it caused issues
1 parent acb9b2a commit b777ed4

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

libs/canvas-api-2/src/main/java/com/instructure/canvasapi2/di/GraphQlClientModule.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import dagger.Provides
2323
import dagger.hilt.InstallIn
2424
import dagger.hilt.components.SingletonComponent
2525
import javax.inject.Qualifier
26-
import javax.inject.Singleton
2726

2827
@Qualifier
2928
@Retention(AnnotationRetention.BINARY)
@@ -36,15 +35,13 @@ annotation class JourneyApolloClient
3635
@Module
3736
@InstallIn(SingletonComponent::class)
3837
class GraphQlClientModule {
39-
@Singleton
4038
@Provides
4139
@DefaultApolloClient
4240
fun provideDefaultApolloClient(): ApolloClient {
4341
val config = QLClientConfig()
4442
return config.buildClient()
4543
}
4644

47-
@Singleton
4845
@Provides
4946
@JourneyApolloClient
5047
fun provideJourneyApolloClient(journeyGraphQLClientConfig: JourneyGraphQLClientConfig): ApolloClient {

0 commit comments

Comments
 (0)