revert(service): reverts a bunch of changes to MeshService.kt (#2692)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-08-12 17:19:40 -05:00 committed by GitHub
parent 1923b6d6d4
commit a35e43d979
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 1622 additions and 1603 deletions

View file

@ -124,6 +124,11 @@ constructor(
nodeInfoDao.clearNodeInfo()
}
suspend fun installNodeDb(nodes: List<NodeEntity>) = withContext(dispatchers.io) {
nodeInfoDao.clearNodeInfo()
nodeInfoDao.putAll(nodes)
}
suspend fun clearNodeDB() = withContext(dispatchers.io) { nodeInfoDao.clearNodeInfo() }
suspend fun deleteNode(num: Int) = withContext(dispatchers.io) {