diff --git a/shared/src/commonMain/kotlin/su/reya/coop/nostr/Nostr.kt b/shared/src/commonMain/kotlin/su/reya/coop/nostr/Nostr.kt index be4f84a..330fd31 100644 --- a/shared/src/commonMain/kotlin/su/reya/coop/nostr/Nostr.kt +++ b/shared/src/commonMain/kotlin/su/reya/coop/nostr/Nostr.kt @@ -155,7 +155,7 @@ class Nostr { val processedEvent = mutableSetOf() val notifications = client?.notifications() ?: return@supervisorScope - val giftWrapQueue = Channel(Channel.UNLIMITED) + val giftWrapQueue = Channel(1024) var processedCount = 0 var eoseReceived = false diff --git a/shared/src/commonMain/kotlin/su/reya/coop/nostr/ProfileManager.kt b/shared/src/commonMain/kotlin/su/reya/coop/nostr/ProfileManager.kt index 889e79b..c276df9 100644 --- a/shared/src/commonMain/kotlin/su/reya/coop/nostr/ProfileManager.kt +++ b/shared/src/commonMain/kotlin/su/reya/coop/nostr/ProfileManager.kt @@ -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}") } }