Make repository.query sync
This commit is contained in:
@@ -78,7 +78,7 @@ export const mergeSubscriptions = (subs: Subscription[]) => {
|
||||
const completedRelays = new Set()
|
||||
const mergedSubscriptions = []
|
||||
|
||||
for (const group of Object.values(groupBy(calculateSubscriptionGroup, subs))) {
|
||||
for (const group of groupBy(calculateSubscriptionGroup, subs).values()) {
|
||||
for (const relay of uniq(group.flatMap((sub: Subscription) => sub.request.relays))) {
|
||||
const abortedSubs = new Set()
|
||||
const callerSubs = group.filter((sub: Subscription) => sub.request.relays.includes(relay))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/net",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "Utilities for connecting with nostr relays.",
|
||||
@@ -31,8 +31,8 @@
|
||||
"typescript": "~5.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@welshman/lib": "0.0.4",
|
||||
"@welshman/util": "0.0.5",
|
||||
"@welshman/lib": "0.0.5",
|
||||
"@welshman/util": "0.0.6",
|
||||
"isomorphic-ws": "^5.0.0",
|
||||
"ws": "^8.16.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user