style: spotless apply on EventSync files
https://claude.ai/code/session_01U8qF9mK4UBvXsXP1zNMXfX
This commit is contained in:
+4
-3
@@ -245,9 +245,10 @@ private fun SyncProgressCard(state: EventSyncViewModel.SyncState.Running) {
|
||||
|
||||
// Overall progress across all phases and relays
|
||||
val overallProgress =
|
||||
((state.phase - 1).toFloat() / state.phaseTotal +
|
||||
(state.relayIndex.toFloat() / state.totalRelays) / state.phaseTotal)
|
||||
.coerceIn(0f, 1f)
|
||||
(
|
||||
(state.phase - 1).toFloat() / state.phaseTotal +
|
||||
(state.relayIndex.toFloat() / state.totalRelays) / state.phaseTotal
|
||||
).coerceIn(0f, 1f)
|
||||
LinearProgressIndicator(
|
||||
progress = { overallProgress },
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
|
||||
+4
-1
@@ -95,7 +95,10 @@ class EventSyncViewModel(
|
||||
val startTime = System.currentTimeMillis()
|
||||
|
||||
val myPubKey = account.signer.pubKey
|
||||
val allRelays = account.cache.relayHints.relayDB.keys().toList()
|
||||
val allRelays =
|
||||
account.cache.relayHints.relayDB
|
||||
.keys()
|
||||
.toList()
|
||||
|
||||
if (allRelays.isEmpty()) {
|
||||
_syncState.value = SyncState.Error("No known relays found. Browse some content first to discover relays.")
|
||||
|
||||
Reference in New Issue
Block a user