From a5e6c301e115077b415259a1cd46a18d3ba8f4cd Mon Sep 17 00:00:00 2001 From: padreug Date: Tue, 16 Sep 2025 21:44:28 +0200 Subject: [PATCH] Update FeedService to use direct connection status check - Changed the connection status check in FeedService from an asynchronous health check to a direct property access on relayHub. - Added a console log to output the current connection status for better debugging and monitoring. These changes improve the efficiency of the connection status verification process in the FeedService. --- src/modules/nostr-feed/services/FeedService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/nostr-feed/services/FeedService.ts b/src/modules/nostr-feed/services/FeedService.ts index d922a5c..42d653d 100644 --- a/src/modules/nostr-feed/services/FeedService.ts +++ b/src/modules/nostr-feed/services/FeedService.ts @@ -290,7 +290,8 @@ export class FeedService extends BaseService { // Check if we need to reconnect if (this.currentConfig && this.relayHub) { - const isConnected = await this.relayHub.checkHealth() + const isConnected = this.relayHub.isConnected.value + console.log('FeedService: RelayHub connection status:', isConnected) if (!isConnected) { console.log('FeedService: Reconnecting after resume') await this.subscribeFeed(this.currentConfig)