Skip to content

Commit 1a65042

Browse files
authoredApr 15, 2023
fix: replace datastore references in blockstore-s3 (#214)
1 parent 42fd4f3 commit 1a65042

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎packages/blockstore-s3/src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
import type { CID } from 'multiformats/cid'
1717
import { 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

0 commit comments

Comments
 (0)
Please sign in to comment.