File tree Expand file tree Collapse file tree
packages/blockstore-s3/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
1616import type { CID } from 'multiformats/cid'
1717import { NextToLast , ShardingStrategy } from './sharding.js'
1818
19- export interface S3DatastoreInit {
19+ export interface S3BlockstoreInit {
2020 /**
2121 * Whether to try to create the bucket if it is missing when `.open` is called
2222 */
@@ -37,15 +37,15 @@ export class S3Blockstore extends BaseBlockstore {
3737 private readonly bucket : string
3838 private readonly shardingStrategy : ShardingStrategy
3939
40- constructor ( s3 : S3 , bucket : string , init ?: S3DatastoreInit ) {
40+ constructor ( s3 : S3 , bucket : string , init ?: S3BlockstoreInit ) {
4141 super ( )
4242
4343 if ( s3 == null ) {
44- throw new Error ( 'An S3 instance must be supplied. See the datastore -s3 README for examples.' )
44+ throw new Error ( 'An S3 instance must be supplied. See the blockstore -s3 README for examples.' )
4545 }
4646
4747 if ( bucket == null ) {
48- throw new Error ( 'An bucket must be supplied. See the datastore -s3 README for examples.' )
48+ throw new Error ( 'An bucket must be supplied. See the blockstore -s3 README for examples.' )
4949 }
5050
5151 this . s3 = s3
You can’t perform that action at this time.
0 commit comments