mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 20:32:27 +00:00
Fix subscriptions loading hang by removing undefined constant and cleaning up debug logs
This commit is contained in:
1 parent
e63ca6eee3
commit
fdf8815792
2 files changed
+3
-3
No files matched your search
@@ -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?.();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user