Skip to content

Commit

Permalink
chore: update constants
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 9, 2024
1 parent 8e6051a commit ca1c458
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/interface/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export interface CreateSessionOptions <ProgressEvents extends ProgressEvent<any,
*
* @default 5000
*/
timeout?: number
providerQueryTimeout?: number
}

export interface BlockBroker<RetrieveProgressEvents extends ProgressEvent<any, any> = ProgressEvent<any, any>, AnnounceProgressEvents extends ProgressEvent<any, any> = ProgressEvent<any, any>> {
Expand All @@ -138,6 +138,7 @@ export interface BlockBroker<RetrieveProgressEvents extends ProgressEvent<any, a
createSession?(root: CID, options?: CreateSessionOptions<RetrieveProgressEvents>): Promise<BlockBroker<RetrieveProgressEvents, AnnounceProgressEvents>>
}

export const DEFAULT_MIN_SESSION_PROVIDERS = 1
export const DEFAULT_MAX_SESSION_PROVIDERS = 5
export const DEFAULT_SESSION_MIN_PROVIDERS = 1
export const DEFAULT_SESSION_MAX_PROVIDERS = 5
export const DEFAULT_SESSION_QUERY_CONCURRENCY = 5
export const DEFAULT_SESSION_PROVIDER_QUERY_TIMEOUT = 5000

0 comments on commit ca1c458

Please sign in to comment.