Skip to content

Commit

Permalink
chore: createSession is not optional on blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 6, 2024
1 parent 39b6f7a commit d1228b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interface/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ProgressOptions<DeleteBlockProgressEvents>, ProgressOptions<DeleteManyBlocksProg
* This method is optional to maintain compatibility with existing
* blockstores that do not support sessions.
*/
createSession?(root: CID, options?: CreateSessionOptions<GetBlockProgressEvents>): Promise<Blockstore>
createSession(root: CID, options?: CreateSessionOptions<GetBlockProgressEvents>): Promise<Blockstore>
}

export interface BlockRetrievalOptions <ProgressEvents extends ProgressEvent<any, any> = ProgressEvent<any, any>> extends AbortOptions, ProgressOptions<ProgressEvents> {
Expand Down

0 comments on commit d1228b9

Please sign in to comment.