Fix subscriptions loading hang by removing undefined constant and cleaning up debug logs

This commit is contained in:
google-labs-jules[bot] committed 2026-01-11 23:42:16 +00:00
1 parent e63ca6eee3
commit fdf8815792
2 files changed
+3 -3

No files matched your search

+1
View File
@@ -581,6 +581,7 @@ export function shimLegacySimplePoolMethods(pool) {
: 7000;
timer = setTimeout(() => {
devLogger.warn(`[toolkit] pool.list timed out after ${timeoutMs}ms.`);
timer = null;
try {
subscription.unsub?.();
+2 -3
View File
@@ -1178,8 +1178,7 @@ export class NostrService {
const requestedLimit = Number(options?.limit);
const resolvedLimit = this.nostrClient.clampVideoRequestLimit(
requestedLimit,
DEFAULT_VIDEO_REQUEST_LIMIT
requestedLimit
);
const filter = {
@@ -1222,7 +1221,7 @@ export class NostrService {
}
}
} catch (relayErr) {
// ignore relay failures
this.log(`[nostrService] Relay ${url} failed:`, relayErr);
}
})
);