Skip to content

Commit

Permalink
problem: missing problems
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Nov 1, 2023
1 parent bb9cafa commit 33389d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/lib/stores/event_sources/relays/ndk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ const _rootEvents = $ndk.storeSubscribe<NDKEvent>(
{ closeOnEose: false }
);

setInterval(()=>{
let filters = _rootEvents.filters;
if (filters) {
_rootEvents.unsubscribe()
_rootEvents.changeFilters(filters)
_rootEvents.startSubscription()
}
}, 5000)
// setInterval(()=>{
// let filters = _rootEvents.filters;
// if (filters) {
// _rootEvents.unsubscribe()
// _rootEvents.changeFilters(filters)
// _rootEvents.startSubscription()
// }
// }, 5000)

//events randomly go missing if we do not have multiple subscriptions
const _nostrocketKinds = $ndk.storeSubscribe<NDKEvent>(
Expand Down
4 changes: 2 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export const profileRelays = [

export const defaultRelays = [
"wss://nostr.688.org",
"wss://eden.nostr.land",
//"wss://eden.nostr.land",
//"wss://relay.damus.io",
// "wss://nos.lol",
// "wss://nostr.mom",
"wss://atlas.nostr.land",
//"wss://atlas.nostr.land",
// "wss://eden.nostr.land",
// "wss://nos.lol"
// 'ws://localhost:8080',
Expand Down

0 comments on commit 33389d9

Please sign in to comment.