Skip to content

Commit

Permalink
fix: remove relay-scope maxConcurrentReqsFallback because reactivit…
Browse files Browse the repository at this point in the history
…y is not guaranteed
  • Loading branch information
penpenpng committed Jul 25, 2023
1 parent 5003232 commit ab09c20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/rx-nostr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ export interface RelayConfig {
/** If true, rxNostr can send EVENTs. */
write: boolean;
disableAutoFetchNip11Limitations?: boolean;
maxConcurrentReqsFallback?: number;
}

/** Parameter of `rxNostr.switchRelays()` */
Expand Down Expand Up @@ -284,7 +283,6 @@ class RxNostrImpl implements RxNostr {
read,
write,
disableAutoFetchNip11Limitations,
maxConcurrentReqsFallback,
}: RelayConfig): Connection {
const connection = new Connection(url, {
backoff: this.options.retry,
Expand All @@ -294,7 +292,6 @@ class RxNostrImpl implements RxNostr {
disableAutoFetchNip11Limitations ??
this.options.globalRelayConfig?.disableAutoFetchNip11Limitations,
maxConcurrentReqsFallback:
maxConcurrentReqsFallback ??
this.options.globalRelayConfig?.maxConcurrentReqsFallback,
});

Expand Down

0 comments on commit ab09c20

Please sign in to comment.