mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(MeshService): remove discardNodeDB and simplify logic
This commit is contained in:
parent
1252b67fce
commit
a98d3899e6
3 changed files with 3 additions and 17 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue