Skip to content

Commit

Permalink
refactor: storefront config renamed to options
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Oct 23, 2023
1 parent fab21b9 commit 712c9d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/filecoin-api/src/storefront/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
ServiceConfig,
} from '../types.js'

export interface Config {
export interface ServiceOptions {
/**
* Implementer MAY handle submission without user request.
*/
Expand Down Expand Up @@ -59,9 +59,9 @@ export interface ServiceContext {
*/
receiptStore: Store<UnknownLink, Receipt>
/**
* Service config.
* Service options.
*/
config?: Config
options?: ServiceOptions
}

export interface FilecoinSubmitMessageContext
Expand Down
2 changes: 1 addition & 1 deletion packages/filecoin-api/src/storefront/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const filecoinOffer = async ({ capability }, context) => {
const { piece, content } = capability.nb

// Queue offer for filecoin submission
if (!context.config?.skipFilecoinSubmitQueue) {
if (!context.options?.skipFilecoinSubmitQueue) {
// dedupe
const hasRes = await context.pieceStore.has({ piece })
if (hasRes.error) {
Expand Down

0 comments on commit 712c9d2

Please sign in to comment.