chore: improve loading state handling #38
@@ -155,7 +155,7 @@ class Nostr {
|
||||
val processedEvent = mutableSetOf<EventId>()
|
||||
val notifications = client?.notifications() ?: return@supervisorScope
|
||||
|
||||
val giftWrapQueue = Channel<Event>(Channel.UNLIMITED)
|
||||
val giftWrapQueue = Channel<Event>(1024)
|
||||
var processedCount = 0
|
||||
var eoseReceived = false
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ class ProfileManager(private val nostr: Nostr) {
|
||||
|
||||
client?.sync(filter, relays)
|
||||
} catch (e: Exception) {
|
||||
throw IllegalStateException("Failed to fetch mutual contacts: ${e.message}", e)
|
||||
println("Failed to sync mutual contacts: ${e.message}")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user