Skip to content

Commit 8b62cf1

Browse files
committed
chore: fix build
1 parent 6344eb1 commit 8b62cf1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

app/src/main/java/to/bitkit/repositories/ActivityRepo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

app/src/main/java/to/bitkit/repositories/BlocktankRepo.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

app/src/main/java/to/bitkit/services/CoreService.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)