From ea7e3fd3edddab18e1e8e5a48dbdda2710dd9a4f Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Tue, 7 Jul 2026 10:59:09 +0700 Subject: [PATCH] . --- shared/src/commonMain/kotlin/su/reya/coop/nostr/Nostr.kt | 2 +- .../src/commonMain/kotlin/su/reya/coop/nostr/ProfileManager.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}") } }