style: spotless apply on EventSync files

https://claude.ai/code/session_01U8qF9mK4UBvXsXP1zNMXfX
This commit is contained in:
Claude
2026-03-13 02:40:08 +00:00
parent 83e79cf857
commit 0da3e562fb
2 changed files with 8 additions and 4 deletions
@@ -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(),
@@ -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.")