Skip to content

Commit

Permalink
fix GranularSyncModule
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos committed May 21, 2024
1 parent c03549e commit 3f13607
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ class GranularSyncModule(
)
}

@Provides
fun provideDispatchers() = object : DispatcherProvider {
override fun io() = Dispatchers.IO

override fun computation() = Dispatchers.Default

override fun ui() = Dispatchers.Main
}

@Provides
fun granularSyncRepository(
d2: D2,
Expand All @@ -87,6 +96,7 @@ class GranularSyncModule(
dhisProgramUtils,
periodUtils,
resourceManager,
provideDispatchers(),
)

@Provides
Expand Down

0 comments on commit 3f13607

Please sign in to comment.