Skip to content

Commit

Permalink
fix: replace datastore references in blockstore-s3 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Apr 15, 2023
1 parent 42fd4f3 commit 1a65042
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/blockstore-s3/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import type { CID } from 'multiformats/cid'
import { NextToLast, ShardingStrategy } from './sharding.js'

export interface S3DatastoreInit {
export interface S3BlockstoreInit {
/**
* Whether to try to create the bucket if it is missing when `.open` is called
*/
Expand All @@ -37,15 +37,15 @@ export class S3Blockstore extends BaseBlockstore {
private readonly bucket: string
private readonly shardingStrategy: ShardingStrategy

constructor (s3: S3, bucket: string, init?: S3DatastoreInit) {
constructor (s3: S3, bucket: string, init?: S3BlockstoreInit) {
super()

if (s3 == null) {
throw new Error('An S3 instance must be supplied. See the datastore-s3 README for examples.')
throw new Error('An S3 instance must be supplied. See the blockstore-s3 README for examples.')
}

if (bucket == null) {
throw new Error('An bucket must be supplied. See the datastore-s3 README for examples.')
throw new Error('An bucket must be supplied. See the blockstore-s3 README for examples.')
}

this.s3 = s3
Expand Down

0 comments on commit 1a65042

Please sign in to comment.