Linting
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
import {Nip01Signer, ISigner} from "@welshman/signer"
|
||||
import {LOCAL_RELAY_URL} from "@welshman/relay"
|
||||
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"
|
||||
|
||||
export type RequestPageOptions = {
|
||||
@@ -57,7 +57,16 @@ export const requestPage = async ({
|
||||
if (withoutSearch.length > 0) {
|
||||
promises.push(
|
||||
...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
|
||||
// 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
|
||||
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 = {
|
||||
|
||||
Reference in New Issue
Block a user