Use default arch thread pool

pull/2984/head
Alex Baker 4 months ago
parent 4f3df04921
commit f66df67592

@ -7,7 +7,6 @@ import dagger.Provides
import dagger.hilt.InstallIn import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.Dispatchers
import org.tasks.BuildConfig import org.tasks.BuildConfig
import org.tasks.R import org.tasks.R
import org.tasks.caldav.FileStorage import org.tasks.caldav.FileStorage
@ -37,7 +36,6 @@ internal class ProductionModule {
context = context, context = context,
name = databaseFile.absolutePath name = databaseFile.absolutePath
) )
.setQueryCoroutineContext(Dispatchers.IO)
.addMigrations(*Migrations.migrations(context, fileStorage)) .addMigrations(*Migrations.migrations(context, fileStorage))
if (!BuildConfig.DEBUG || !preferences.getBoolean(R.string.p_crash_main_queries, false)) { if (!BuildConfig.DEBUG || !preferences.getBoolean(R.string.p_crash_main_queries, false)) {
builder.allowMainThreadQueries() builder.allowMainThreadQueries()

Loading…
Cancel
Save