Browse Source

ix: dont keep single event subs open

improving change made in
f754eecb16
so that subscriptions are left open that are
getting a single event by id
master
DanConwayDev 2 years ago
parent
commit
d216009da0
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 2
      src/lib/stores/Issue.ts
  2. 5
      src/lib/stores/Proposal.ts

2
src/lib/stores/Issue.ts

@ -73,7 +73,7 @@ export const ensureIssueFull = (repo_identifier: string, issue_id: string) => { @@ -73,7 +73,7 @@ export const ensureIssueFull = (repo_identifier: string, issue_id: string) => {
limit: 100,
},
{
closeOnEose: false,
closeOnEose: true,
},
NDKRelaySet.fromRelayUrls(relays_to_use, ndk)
)

5
src/lib/stores/Proposal.ts

@ -82,7 +82,7 @@ export const ensureProposalFull = ( @@ -82,7 +82,7 @@ export const ensureProposalFull = (
limit: 100,
},
{
closeOnEose: false,
closeOnEose: true,
},
NDKRelaySet.fromRelayUrls(relays_to_use, ndk)
)
@ -199,6 +199,9 @@ export const ensureProposalFull = ( @@ -199,6 +199,9 @@ export const ensureProposalFull = (
limit: 100,
},
{
groupable: true,
// default 100
groupableDelay: 200,
closeOnEose: false,
},
NDKRelaySet.fromRelayUrls(relays_to_use, ndk)

Loading…
Cancel
Save