Linting
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
|||||||
import {Nip01Signer, ISigner} from "@welshman/signer"
|
import {Nip01Signer, ISigner} from "@welshman/signer"
|
||||||
import {LOCAL_RELAY_URL} from "@welshman/relay"
|
import {LOCAL_RELAY_URL} from "@welshman/relay"
|
||||||
import {Router, getFilterSelections, addMinimalFallbacks} from "@welshman/router"
|
import {Router, getFilterSelections, addMinimalFallbacks} from "@welshman/router"
|
||||||
import {Tracker, AdapterContext, request, netContext, RequestOptions} from "@welshman/net"
|
import {Tracker, AdapterContext, request} from "@welshman/net"
|
||||||
import {makeDvmRequest} from "@welshman/dvm"
|
import {makeDvmRequest} from "@welshman/dvm"
|
||||||
|
|
||||||
export type RequestPageOptions = {
|
export type RequestPageOptions = {
|
||||||
@@ -57,7 +57,16 @@ export const requestPage = async ({
|
|||||||
if (withoutSearch.length > 0) {
|
if (withoutSearch.length > 0) {
|
||||||
promises.push(
|
promises.push(
|
||||||
...getFilterSelections(filters).flatMap(({relays, filters}) =>
|
...getFilterSelections(filters).flatMap(({relays, filters}) =>
|
||||||
request({tracker, signal, context, onEvent, relays, filters, threshold: 0.8, autoClose: true}),
|
request({
|
||||||
|
tracker,
|
||||||
|
signal,
|
||||||
|
context,
|
||||||
|
onEvent,
|
||||||
|
relays,
|
||||||
|
filters,
|
||||||
|
threshold: 0.8,
|
||||||
|
autoClose: true,
|
||||||
|
}),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -69,7 +78,15 @@ export const requestPage = async ({
|
|||||||
// Wait until after we've queried the network to access our local cache. This results in less
|
// Wait until after we've queried the network to access our local cache. This results in less
|
||||||
// snappy response times, but is necessary to prevent stale stuff that the user has already seen
|
// snappy response times, but is necessary to prevent stale stuff that the user has already seen
|
||||||
// from showing up at the top of the feed
|
// from showing up at the top of the feed
|
||||||
await request({tracker, signal, context, onEvent, filters, relays: [LOCAL_RELAY_URL], autoClose: true})
|
await request({
|
||||||
|
tracker,
|
||||||
|
signal,
|
||||||
|
context,
|
||||||
|
onEvent,
|
||||||
|
filters,
|
||||||
|
relays: [LOCAL_RELAY_URL],
|
||||||
|
autoClose: true,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RequestDVMOptions = {
|
export type RequestDVMOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user