refactor(MeshService): remove discardNodeDB and simplify logic

This commit is contained in:
andrekir 2024-09-13 18:38:04 -03:00
parent 1252b67fce
commit a98d3899e6
3 changed files with 3 additions and 17 deletions

View file

@ -57,7 +57,6 @@ class RadioConfigRepository @Inject constructor(
val nodeDBbyNum: StateFlow<Map<Int, NodeInfo>> get() = nodeDB.nodeDBbyNum
suspend fun upsert(node: NodeInfo) = nodeDB.upsert(node)
suspend fun clearNodeDB() = nodeDB.clearNodeDB()
suspend fun installNodeDB(mi: MyNodeInfo, nodes: List<NodeInfo>) {
nodeDB.installNodeDB(mi, nodes)
}