Skip to content

Commit

Permalink
remove/#33: datastore di - 불필요하게 초기화한 scope 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Dec 11, 2023
1 parent 6e5daca commit 9599e4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ object DataStoreModule {
): DataStore<UserPreference> =
DataStoreFactory.create(
serializer = userPreferenceSerializer,
scope = CoroutineScope(Dispatchers.IO + SupervisorJob()),
) {
context.dataStoreFile("user_preference.pb")
}
Expand All @@ -47,7 +46,6 @@ object DataStoreModule {
corruptionHandler = ReplaceFileCorruptionHandler(
produceNewData = { emptyPreferences() },
),
scope = CoroutineScope(Dispatchers.IO + SupervisorJob()),
produceFile = { applicationContext.preferencesDataStoreFile("suwiki-preference") },
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ object DataStoreModule {
corruptionHandler = ReplaceFileCorruptionHandler(
produceNewData = { emptyPreferences() },
),
scope = CoroutineScope(Dispatchers.IO + SupervisorJob()),
produceFile = { applicationContext.preferencesDataStoreFile("security-preference") },
)

Expand Down

0 comments on commit 9599e4f

Please sign in to comment.