File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
app/src/main/java/to/bitkit Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -651,8 +651,8 @@ class ActivityRepo @Inject constructor(
651651
652652 suspend fun restoreFromBackup (backup : ActivityBackupV1 ): Result <Unit > = withContext(bgDispatcher) {
653653 return @withContext runCatching {
654- coreService.activity.upsert (backup.activities)
655- coreService.activity.upsert (backup.closedChannels)
654+ coreService.activity.upsertList (backup.activities)
655+ coreService.activity.upsertClosedChannelList (backup.closedChannels)
656656 }
657657 }
658658
Original file line number Diff line number Diff line change @@ -377,10 +377,10 @@ class BlocktankRepo @Inject constructor(
377377
378378 suspend fun restoreFromBackup (backup : BlocktankBackupV1 ): Result <Unit > = withContext(bgDispatcher) {
379379 return @withContext runCatching {
380- coreService.blocktank.upsert (backup.orders)
381- coreService.blocktank.upsert (backup.cjitEntries)
380+ coreService.blocktank.upsertOrderList (backup.orders)
381+ coreService.blocktank.upsertCjitList (backup.cjitEntries)
382382 backup.info?.let { info ->
383- coreService.blocktank.upsert (info)
383+ coreService.blocktank.setInfo (info)
384384 }
385385
386386 // We don't refresh orders here because we rely on the polling mechanism.
Original file line number Diff line number Diff line change @@ -211,15 +211,15 @@ class ActivityService(
211211 upsertActivity(activity)
212212 }
213213
214- suspend fun upsert (activities : List <Activity >) = ServiceQueue .CORE .background {
214+ suspend fun upsertList (activities : List <Activity >) = ServiceQueue .CORE .background {
215215 upsertActivities(activities)
216216 }
217217
218- suspend fun upsert (closedChannel : ClosedChannelDetails ) = ServiceQueue .CORE .background {
218+ suspend fun upsertClosedChannelItem (closedChannel : ClosedChannelDetails ) = ServiceQueue .CORE .background {
219219 upsertClosedChannel(closedChannel)
220220 }
221221
222- suspend fun upsert (closedChannels : List <ClosedChannelDetails >) = ServiceQueue .CORE .background {
222+ suspend fun upsertClosedChannelList (closedChannels : List <ClosedChannelDetails >) = ServiceQueue .CORE .background {
223223 upsertClosedChannels(closedChannels)
224224 }
225225
@@ -690,15 +690,15 @@ class BlocktankService(
690690 }
691691 }
692692
693- suspend fun upsert (info : IBtInfo ) = ServiceQueue .CORE .background {
693+ suspend fun setInfo (info : IBtInfo ) = ServiceQueue .CORE .background {
694694 upsertInfo(info)
695695 }
696696
697- suspend fun upsert (orders : List <IBtOrder >) = ServiceQueue .CORE .background {
697+ suspend fun upsertOrderList (orders : List <IBtOrder >) = ServiceQueue .CORE .background {
698698 upsertOrders(orders)
699699 }
700700
701- suspend fun upsert (cjitEntries : List <IcJitEntry >) = ServiceQueue .CORE .background {
701+ suspend fun upsertCjitList (cjitEntries : List <IcJitEntry >) = ServiceQueue .CORE .background {
702702 upsertCjitEntries(cjitEntries)
703703 }
704704
You can’t perform that action at this time.
0 commit comments