Change default limit for router urls

This commit is contained in:
Jon Staab
2024-12-11 11:02:33 -08:00
parent 6f75ef4ab9
commit ab0517e804
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ export class RouterScenario {
getPolicy = () => this.options.policy || addMaximalFallbacks
getLimit = () => this.options.limit || this.router.options.getLimit?.() || 10
getLimit = () => this.options.limit || this.router.options.getLimit?.() || 3
getUrls = () => {
const limit = this.getLimit()
@@ -366,7 +366,7 @@ export const makeRouter = (options: Partial<RouterOptions> = {}) =>
getSearchRelays,
getRelayQuality,
getUserPubkey: () => pubkey.get(),
getLimit: () => 5,
getLimit: () => 3,
...options,
})